MAL-2025-190940

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/url-encode-decode/MAL-2025-190940.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2025-190940
Aliases
  • GHSA-mh49-fgjv-fgxx
Published
2025-11-24T21:02:49Z
Modified
2025-11-25T05:01:41.457655Z
Summary
Malicious code in url-encode-decode (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (37ce07aaa237eff3cc95c7bb560f4096191d2d5328de45f176f3f8662ca7cd34)

The package url-encode-decode was found to contain malicious code.

Source: ghsa-malware (3951d6bc913db965ac7efd361881d9fee5708e1e4c91125aed16f51f64947cd5)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Source: google-open-source-security (2e79f36bfc4df4b5824619f489fe54b1c831c33d475c92f138794a1f83ff2bb1)

This package was compromised by the Sha1-Hulud: The Second Coming NPM worm. The malicious payload steals tokens and credentials and publishes them to GitHub. The worm will propogate itself to NPM packages the user owns and establish persistence is a GitHub action. The package may also destroy the user's home directory.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2025-11-24T21:23:33.093362276Z",
            "source": "ghsa-malware",
            "versions": [
                "1.0.1",
                "1.0.2"
            ],
            "modified_time": "2025-11-24T21:03:40Z",
            "id": "GHSA-mh49-fgjv-fgxx",
            "sha256": "3951d6bc913db965ac7efd361881d9fee5708e1e4c91125aed16f51f64947cd5"
        },
        {
            "import_time": "2025-11-24T23:07:25.580230118Z",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1",
                "1.0.2"
            ],
            "modified_time": "2025-11-24T22:54:02Z",
            "sha256": "37ce07aaa237eff3cc95c7bb560f4096191d2d5328de45f176f3f8662ca7cd34"
        },
        {
            "import_time": "2025-11-25T00:17:35.215231Z",
            "source": "google-open-source-security",
            "versions": [
                "1.0.1",
                "1.0.2"
            ],
            "modified_time": "2025-11-25T00:16:49Z",
            "sha256": "2e79f36bfc4df4b5824619f489fe54b1c831c33d475c92f138794a1f83ff2bb1"
        }
    ]
}
References
Credits

Affected packages

npm / url-encode-decode

Package

Affected ranges

Affected versions

1.*

1.0.1
1.0.2

Database specific

cwes

[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]