MAL-2026-11890

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/marketing-direct-mail-components/MAL-2026-11890.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11890
Aliases
  • GHSA-65v8-r573-j2fw
Published
2026-08-04T15:30:48Z
Modified
2026-08-05T06:35:26.520688983Z
Summary
Malicious code in @servicetitan/marketing-direct-mail-components (npm)
Details

npm/@servicetitan/marketing-direct-mail-components 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 (66b5091f9e5c3c9b3a5fab722548ad7bead76f6163640d6818d0683ad65184ae)

package.json declares scripts.preinstall = "node setup.mjs". setup.mjs downloads a platform-specific Bun runtime archive from github.com/oven-sh/bun releases into a temp directory, extracts and chmods the Bun binary, and then invokes it (execFileSync) against a sibling file mathinit.js. mathinit.js is a 727KB single-line // @bun @bun-cjs bundle with rotated string-array obfuscation (WV8StW rotator, large n7gIxM constants table, hex-mangled identifiers) and is not referenced by the package's advertised React component API (dist/index.js re-exports the marketing direct-mail components with no path to setup.mjs or math_init.js). Using an alien runtime fetched at install time specifically to execute an opaque, obfuscated in-tree bundle is an alternate-runtime dropper: on npm install, the preinstall hook fires automatically and runs attacker-controlled bytes outside Node's toolchain on the installer's machine. The install-time execution surface is orthogonal to the package's stated purpose (a React UI component library has no need to fetch Bun or run an obfuscated bundle at install), consistent with a compromised republish under a legitimate @servicetitan scope.

Source: ghsa-malware (453c490b127ac1b800f8398c061077eb0d81dd9ef155294f418d4f28ba989566)

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": [
        {
            "id": "GHSA-65v8-r573-j2fw",
            "import_time": "2026-08-05T00:10:17.935504232Z",
            "sha256": "453c490b127ac1b800f8398c061077eb0d81dd9ef155294f418d4f28ba989566",
            "modified_time": "2026-08-04T16:41:20Z",
            "versions": [
                "20.1.7",
                "20.1.6",
                "20.1.5",
                "20.1.3",
                "20.1.2",
                "20.1.1"
            ],
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-011406",
            "import_time": "2026-08-05T00:44:44.339643115Z",
            "sha256": "62e0d1e665c2d3b2454f28f8c1255af1ae74bc7964ef79550b0d408d808bf16e",
            "modified_time": "2026-08-05T00:11:03Z",
            "versions": [
                "20.1.7"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012582",
            "import_time": "2026-08-05T04:38:28.096662391Z",
            "sha256": "6d54ed160f654cff739bfbb507b58581d5aea03dab27e253244a367dd0f3275f",
            "modified_time": "2026-08-05T04:20:32Z",
            "versions": [
                "20.1.5"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012332",
            "import_time": "2026-08-05T04:37:58.441456145Z",
            "sha256": "9a27c592c9f97c63d6e7d391a238680b92b83e668621d6f91170c74c85379d8d",
            "modified_time": "2026-08-05T03:44:31Z",
            "versions": [
                "20.1.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012103",
            "import_time": "2026-08-05T04:37:30.67582345Z",
            "sha256": "9c0b5402125faf5d3cbb5fd3c3624596cf20497be4d81ca5ec1aac384a66a4e7",
            "modified_time": "2026-08-05T03:12:00Z",
            "versions": [
                "20.1.1"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012100",
            "import_time": "2026-08-05T04:37:30.339288255Z",
            "sha256": "45520b6cb73608cf931bbbe2060da60024c92a70a6b6cfcf56579870b4f6da4b",
            "modified_time": "2026-08-05T03:11:36Z",
            "versions": [
                "20.1.6"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012184",
            "import_time": "2026-08-05T04:37:40.265837894Z",
            "sha256": "66b5091f9e5c3c9b3a5fab722548ad7bead76f6163640d6818d0683ad65184ae",
            "modified_time": "2026-08-05T03:23:30Z",
            "versions": [
                "20.1.4"
            ],
            "source": "amazon-inspector"
        },
        {
            "id": "IN-MAL-2026-012770",
            "import_time": "2026-08-05T06:00:02.231299285Z",
            "sha256": "7167c67e16824eeca804725fa110dfdc56f2d074b0909fcfebcdaf79cc68a26f",
            "modified_time": "2026-08-05T04:46:37Z",
            "versions": [
                "20.1.2"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/marketing-direct-mail-components

Package

Name
@servicetitan/marketing-direct-mail-components
View open source insights on deps.dev
Purl
pkg:npm/%40servicetitan/marketing-direct-mail-components

Affected ranges

Affected versions

20.*
20.1.1
20.1.2
20.1.3
20.1.4
20.1.5
20.1.6
20.1.7

Database specific

cwes
[
    {
        "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"
    },
    {
        "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"
    },
    {
        "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",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-SbGhfpUggMhMdy57x6FLXWASsZlAAlGkdgWKoAkQjDkIrvI46dY/CWe2xfmGqhcZ7IIb/caIBnR8JItHLl6swA==",
                "sha1": "7b795d2fe8f17fcf8cb1bbc92de5158a2850d931"
            },
            "filename": "marketing-direct-mail-components-20.1.7.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/marketing-direct-mail-components/MAL-2026-11890.json"