MAL-2026-14343

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-soul/MAL-2026-14343.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-14343
Published
2026-08-21T03:48:16Z
Modified
2026-08-21T05:01:52.420952881Z
Summary
Malicious code in chai-as-soul (npm)
Details

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

Source: amazon-inspector (244e923b668eb903bcc217cb1eda26ce2227f37bd14abc3699d60c222c4f4e62)

chai-as-soul@2.3.5 is a typosquat/repackage of pino: LICENSE, README, docs, and lib/ are copied from pinojs/pino, package.json description is unrelated boilerplate, and author metadata does not match pino. The package adds lib/initializeCaller.js, a top-level IIFE that runs on require. It base64-decodes a hardcoded URL (decoding to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) stored in a variable named configEndpoint, then axios.POSTs the installer's entire process.env to that endpoint with an x-secret-header. It then passes the HTTP response body to new Function("require", response.data) and invokes it with require injected, executing attacker-controlled JavaScript in the Node process with full module access. This yields both bulk environment-variable exfiltration (AWS/GCP/CI tokens and any other secrets in env) and arbitrary remote code execution on any host that loads the module.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-018492",
            "versions": [
                "2.3.5"
            ],
            "modified_time": "2026-08-21T03:48:26Z",
            "sha256": "244e923b668eb903bcc217cb1eda26ce2227f37bd14abc3699d60c222c4f4e62",
            "import_time": "2026-08-21T03:50:53.54253319Z",
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-018491",
            "versions": [
                "2.3.6"
            ],
            "modified_time": "2026-08-21T03:48:16Z",
            "sha256": "5def06da3e173b5a72193d0c24a914bd00a6ac82f740dc98d7c77a851933ea27",
            "import_time": "2026-08-21T03:50:53.397242677Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / chai-as-soul

Package

Affected ranges

Affected versions

2.*
2.3.5
2.3.6

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "0a22e7a21ac873219d858746d8b32c2e4ba926f598e05fd06a617c792e440f03",
            "path": "lib/initializeCaller.js",
            "tlsh": "dff0e14d24ba2039426e58e2bf1b18461403f9223381d861f7cd936e0f8dc0dea636c8"
        },
        {
            "sha256": "d30d603e0b9aabd13ca2762f31955d9256df2d4956e752410d9941c345a358f7",
            "path": "package.json",
            "tlsh": "36017b20da7c4e2300ed25524c2a0643b6624c175528fd1932db512d0f9d5ff41bf21d"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-rOItPYMpzQcg7uo9yhmVoHB34VGSK/4VqPP6drKKa278GqaT+7sH9LI77a/SF745Us5Nkc1Kp7wc9kZFTMV7Gg==",
                "sha1": "5c743931d1e5a87d252a0818e5345b48412162d2"
            },
            "filename": "chai-as-soul-2.3.5.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/chai-as-soul/MAL-2026-14343.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]