MAL-2026-11842

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/contentful-proxy/MAL-2026-11842.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11842
Aliases
  • GHSA-r9xm-2rwj-6g35
Published
2026-08-04T13:17:26Z
Modified
2026-08-05T06:35:09.716450854Z
Summary
Malicious code in @servicetitan/contentful-proxy (npm)
Details

npm/@servicetitan/contentful-proxy is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the "Shai-Hulud: Here We Go Again" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook ("preinstall": "node setup.mjs") that runs on a bare npm install, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as MathSymbol.js / mathinit.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). 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 (58024f6c37cfb6fccc9f958f3c489fe4bf28a359bd83ff7f4c9773fb2dd291bf)

The package declares a preinstall hook ("preinstall": "node setup.mjs") that runs at npm install time. setup.mjs downloads the Bun runtime from https://github.com/oven-sh/bun/releases/download/bun-v<version>/<arch>.zip, extracts it to a temp directory, marks the binary executable, and invokes it via execFileSync(bunPath, [path.join(D, 'math_init.js')], { cwd: D }). The sibling file math_init.js is a 727KB heavily obfuscated JavaScript blob marked // @bun @bun-cjs, containing a large hex-indexed opcode/string array (n7gIxM=[0x0,0x1,0x8,...]), a rotating array-shuffle dispatcher (WV8StW), a decoder function hc1jfK9, and no source map, license header, or human-readable identifiers. The Bun runtime is fetched specifically so this payload is executed outside Node's evaluation surface. Nothing about a Contentful proxy client requires the Bun runtime or a 727KB obfuscated math_init.js; the file's name is unrelated to the package's advertised purpose. The dist/ tree contains benign auto-generated NSwag Contentful client stubs, indicating the dropper was injected on top of an otherwise legitimate baseline (consistent with a scope/account compromise or malicious version bump).

Source: ghsa-malware (18f1e6ac57ae795a8a1e0d5730ca961650051a4a1217f67f8180428ed7e65a44)

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
{
    "iocs": {
        "files": [
            {
                "paths": [
                    "setup.mjs"
                ],
                "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": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "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"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:21:38Z",
            "sha256": "18f1e6ac57ae795a8a1e0d5730ca961650051a4a1217f67f8180428ed7e65a44",
            "id": "GHSA-r9xm-2rwj-6g35",
            "versions": [
                "1.1.17",
                "1.1.16",
                "1.1.15",
                "1.1.14",
                "1.1.13",
                "1.1.12",
                "1.1.18"
            ],
            "import_time": "2026-08-05T00:10:18.215223393Z"
        },
        {
            "import_time": "2026-08-05T00:44:46.053992154Z",
            "modified_time": "2026-08-05T00:13:10Z",
            "sha256": "4ca07a12ff78f43f8b176919730fab7b1cb155f78d62a4f53d11f6e0ce548186",
            "id": "IN-MAL-2026-011420",
            "versions": [
                "1.1.17"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T00:44:51.703989579Z",
            "modified_time": "2026-08-05T00:18:16Z",
            "sha256": "58024f6c37cfb6fccc9f958f3c489fe4bf28a359bd83ff7f4c9773fb2dd291bf",
            "id": "IN-MAL-2026-011455",
            "versions": [
                "1.1.15"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:12:15.204047044Z",
            "modified_time": "2026-08-05T03:06:53Z",
            "sha256": "326c312dcec8961fc7c7da83f57bd0fe287a9aebfbfe357c4b1667a01df1fc59",
            "id": "IN-MAL-2026-012067",
            "versions": [
                "1.1.16"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:09:10Z",
            "sha256": "5af78c041e01a8a712cf6a9e4df5d97ef9a051299be35b1f93ad41c27804aa9d",
            "id": "IN-MAL-2026-012084",
            "versions": [
                "1.1.12"
            ],
            "import_time": "2026-08-05T03:12:16.677548757Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:08:16Z",
            "sha256": "6ec98b629325f44c7fc52817bf458368e40d9e4ce258d728e2c5c128c4debfc2",
            "id": "IN-MAL-2026-012077",
            "versions": [
                "1.1.14"
            ],
            "import_time": "2026-08-05T03:12:16.061740616Z"
        },
        {
            "import_time": "2026-08-05T04:38:11.08098297Z",
            "sha256": "e1c4f39c4f2eae1cfc530bc23ad9031a933bc9722baaf441a92cdeddc7005af0",
            "modified_time": "2026-08-05T04:00:23Z",
            "id": "IN-MAL-2026-012443",
            "versions": [
                "1.1.18"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T05:59:59.944656967Z",
            "sha256": "54a8359cb589db751571a43bcc9379363132f385817b0024902e5f9786b6c9c2",
            "modified_time": "2026-08-05T04:43:57Z",
            "id": "IN-MAL-2026-012751",
            "versions": [
                "1.1.13"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/contentful-proxy

Package

Name
@servicetitan/contentful-proxy
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/contentful-proxy

Affected ranges

Affected versions

1.*
1.1.12
1.1.13
1.1.14
1.1.15
1.1.16
1.1.17
1.1.18

Database specific

cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "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",
        "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",
        "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",
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-huoVP0of1CNwBysPaGwWVNg4KyMI7mQEgx+opEZPdiFhrMWbYLwb0E1mzE8rzRIkY6nA9ubQSv2z5/XmyaOAIA==",
                "sha1": "aa44f149dc1832a9f1c762c27d5ce6915ce4342e"
            },
            "filename": "contentful-proxy-1.1.17.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "870ab42f6f781b5721c873856b447cde79c1d473549067eb66f29c5da6ecee3a",
            "tlsh": "50317820c9541db30aee5178283b0913685d980bad687d4c3392c32d4fcd7ef61be66e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/contentful-proxy/MAL-2026-11842.json"