MAL-2026-11523

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cache-manager/MAL-2026-11523.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11523
Aliases
  • GHSA-p7m5-96hg-gppj
Published
2026-08-04T11:12:20Z
Modified
2026-08-05T00:37:47.376678321Z
Summary
Malicious code in cache-manager (npm)
Details

npm/cache-manager version 7.2.10 is a trojanized release published on 2026-08-04 during the compromise of the npm/GitHub maintainer account behind the keyv and cacheable package families (user "Jaredwray"). Attackers pushed the malicious payload to the source repository and cut releases through GitHub Actions, so the poisoned versions reached npm with a valid, signed provenance attestation (provenance attests build integrity, not source integrity). Delivery is through the npm install lifecycle: the trojanized package.json adds a preinstall hook ("preinstall": "node setup.mjs") that runs before any project code on a bare npm install, while the normal compiled output is left intact so the package still works after install. setup.mjs downloads a standalone Bun runtime and uses it to run a second stage (shipped as MathSymbol.js, a heavily obfuscated ~728 KB Bun bundle, referenced at runtime as mathinit.js). The stealer harvests credentials from cloud instance metadata (AWS IMDS at 169.254.169.254, ECS at 169.254.170.2, GCP, Azure), AWS/GCP/Azure keys, HashiCorp Vault tokens, Kubernetes service-account tokens, GitHub Actions OIDC and org/repo secrets, and npm tokens, with a TruffleHog-style regex sweep for further secrets and private keys. Using the stolen npm identity (including npm OIDC trusted publishing) it enumerates and republishes further packages the token can reach — which, for a maintainer controlling both keyv and cacheable, gave the worm a large blast radius. Stolen findings are exfiltrated to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and to destinations resolved over DNS, and autostart hooks are planted in the repository's .claude/ and .vscode/ configuration to run the loader when a developer or AI coding agent opens a clone. Treat any environment that installed this version (with install scripts enabled) as fully compromised and rotate every reachable credential. Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.


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

Source: amazon-inspector (5a3d9e70c3e6f7e6c10d38a9f9e1d29bfea7c026fe7c5329c5817267bf4b759d)

This tarball, published under the popular cache-manager name, ships an obfuscated preinstall dropper that does not exist in the upstream project. package.json declares "preinstall": "node setup.mjs", and setup.mjs is a single-line obfuscator.io-style bundle (string-array + RC4-style per-call decoder at i['tXsWiG']) that hides every URL, filename, and command literal. Decoding reveals the loader detects the host platform, downloads a matching Bun runtime archive from github.com/oven-sh/bun/releases (e.g. bun-linux-x64-baseline, bun-windows-x64-baseline), extracts it to a temp directory, marks it executable, and then invokes that freshly downloaded runtime via execFileSync against the sibling file Math_Symbol.js. Math_Symbol.js is a 727 KB // @bun @bun-cjs-tagged opaque bundle with hex-obfuscated identifiers and its own string-array decoder; it is not referenced by the package's advertised entry point (dist/index.cjs) and is only reachable through the preinstall dropper. The alternate-runtime aspect (executing under Bun rather than Node) ensures the terminal payload is not observable to Node-based scanning of the tarball. The upstream cache-manager package ships no preinstall, no setup.mjs, and no Math_Symbol.js, so this version is a supply-chain compromise or lookalike rather than a legitimate release. Installing this version causes attacker-controlled code to execute on the installer's machine at npm install time.

Source: ghsa-malware (68f47944d13edae7430283fc13c0af9ed0362c9d120fb300384ee88f1dfeb66f)

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": [
        {
            "sha256": "5a3d9e70c3e6f7e6c10d38a9f9e1d29bfea7c026fe7c5329c5817267bf4b759d",
            "source": "amazon-inspector",
            "versions": [
                "7.2.10"
            ],
            "import_time": "2026-08-04T21:33:11.779301112Z",
            "id": "IN-MAL-2026-010973",
            "modified_time": "2026-08-04T21:08:26Z"
        },
        {
            "sha256": "68f47944d13edae7430283fc13c0af9ed0362c9d120fb300384ee88f1dfeb66f",
            "source": "ghsa-malware",
            "versions": [
                "7.2.10"
            ],
            "import_time": "2026-08-05T00:10:18.171452769Z",
            "id": "GHSA-p7m5-96hg-gppj",
            "modified_time": "2026-08-04T11:12:20Z"
        }
    ],
    "iocs": {
        "files": [
            {
                "note": "Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.",
                "source": "PACKAGE_ARCHIVE",
                "paths": [
                    "setup.mjs"
                ]
            },
            {
                "note": "Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.",
                "source": "PACKAGE_ARCHIVE",
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ]
            }
        ]
    }
}
References
Credits

Affected packages

npm / cache-manager

Package

Affected ranges

Affected versions

7.*
7.2.10

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "22d2e98e35aa70e2526331b37c7791a5f97facc077c84414f998ac5afd6c22cc18669c",
            "sha256": "54dc7ea54a1317cca0e890a2770630cf7fa6c97813e0cb9d2caa93012b350668",
            "path": "setup.mjs"
        },
        {
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "path": "Math_Symbol.js"
        }
    ],
    "package_integrity": [
        {
            "filename": "cache-manager-7.2.10.tgz",
            "hashes": {
                "sha1": "c7194bf223e18095275aebf43a9c3857c18d9cf7",
                "sha512_sri": "sha512-eegi+1AbGbs4EKnyGhhXM4faJuL6Rmfm1oeLdFAstebHYRR+qYqB2QomwW/vgdAnrHvVW5NyocEZcdGENh5ivg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/cache-manager/MAL-2026-11523.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"
    }
]