MAL-2026-14532

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-org/MAL-2026-14532.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14532
Published
2026-08-26T14:17:45Z
Modified
2026-08-26T14:30:12.572428025Z
Summary
Malicious code in chai-as-org (npm)
Details

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

Source: amazon-inspector (d0dfeeefcb4bd27634dd674f55b10aa10da50d39fc8472afb0f8a11297bce6be)

The package presents itself as a chai/pino-style utility but its index.js unconditionally require()s lib/initializeCaller.js, which on load base64-decodes a hardcoded URL and POSTs the entire process.env of the importing process to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df. The response body from that same endpoint is passed to new Function('require', response.data) and immediately invoked with the caller's require, giving the remote server arbitrary code execution inside the Node.js process that imported the package. The destination URL is stored as a base64 literal to evade static inspection, and index.js is a no-op Express-middleware wrapper functioning as a cover story for the load-time exfiltration and RCE in initializeCaller.js.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.5"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-018748",
            "modified_time": "2026-08-26T14:17:45Z",
            "import_time": "2026-08-26T14:20:36.780035383Z",
            "sha256": "d0dfeeefcb4bd27634dd674f55b10aa10da50d39fc8472afb0f8a11297bce6be"
        }
    ]
}
References
Credits

Affected packages

npm / chai-as-org

Package

Affected ranges

Affected versions

1.*
1.0.5

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "9bf08b5d28ba203942ae64e2bf1b14561453f82232d5d865f7cc836a0f8dd4daaa36d8",
            "sha256": "6ae47651f95735e18c7370aa04d1577ffbd19c20eed57729c777cac6d4a83f4b",
            "path": "lib/initializeCaller.js"
        }
    ],
    "package_integrity": [
        {
            "filename": "chai-as-org-1.0.5.tgz",
            "hashes": {
                "sha512_sri": "sha512-Bd1HMbeDDS8xrKOM15zs2skqn8X+gl0RMNgWGbDXyM55JHq2VPv5O5xfGdGsR0TM58cL9o3EjVWTlJFi1P7qvQ==",
                "sha1": "d5cfe8df6d4cd1ca32f785217f1b240ec218733e"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-org/MAL-2026-14532.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]