MAL-2026-13719

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/commonjs-assertion/MAL-2026-13719.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13719
Aliases
  • GHSA-mfjj-4625-mpvr
Published
2026-08-10T15:52:18Z
Modified
2026-08-11T12:30:12.948258207Z
Summary
Malicious code in commonjs-assertion (npm)
Details

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

Source: amazon-inspector (29c3fd028dc7e2493e59a3f81bb26702030dac0a64a42d845bd23ea116352f94)

Package presents itself as a chai-like assertion library. index.js uses hex-encoded strings to hide the identifiers 'childprocess' and 'node' and, on require, unconditionally invokes childprocess.spawn to launch a detached, stdio-ignored node child running lib/chai/utils/assertion.js. That file is a heavily obfuscated loader (obfuscator.io rotated string array plus a custom base64/URI decoder) whose decoded logic performs an HTTP GET to a URL reconstructed from the encoded string array and passes the response body to new Function(..., body)(require), granting the fetched remote code full Node access. The assertion.js file is not referenced by chai's real code and is only reachable via the hex-hidden spawn in index.js. Importing the package causes remote code execution on the installer's host at load time.

Source: ghsa-malware (0d9cb8e89c50d78130775904af2df0dc68d2fa17454fcd0c042e273c51e40855)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "id": "GHSA-mfjj-4625-mpvr",
            "import_time": "2026-08-11T00:38:01.342733712Z",
            "sha256": "0d9cb8e89c50d78130775904af2df0dc68d2fa17454fcd0c042e273c51e40855",
            "modified_time": "2026-08-10T15:52:19Z",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-017282",
            "import_time": "2026-08-11T12:23:04.235371292Z",
            "sha256": "29c3fd028dc7e2493e59a3f81bb26702030dac0a64a42d845bd23ea116352f94",
            "versions": [
                "1.2.7"
            ],
            "source": "amazon-inspector",
            "modified_time": "2026-08-11T11:57:43Z"
        }
    ]
}
References
Credits

Affected packages

npm / commonjs-assertion

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.2.7

Database specific

cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "tlsh": "a501c0d11382b9e01c786be5809a6c06b5e0e43170a009b0fbfc52d3ab02a911123eb8",
            "sha256": "9074c70ce1c225f82083ff9d26a0cd7692eddfa18a44f9d5c354426e5a1c35a1"
        },
        {
            "path": "lib/chai/utils/assertion.js",
            "tlsh": "a391755cad8021915b8f475b3a27f0c4f4096d9f7fc9148fa111bde4e989a24ead6e30",
            "sha256": "46543bececc793d6150af132e1ba48d0be2b61cc22dc2b2408a1ed3e23eeddfb"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/commonjs-assertion/MAL-2026-13719.json"