MAL-2026-11857

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/dte-unlayer/MAL-2026-11857.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11857
Aliases
  • GHSA-w796-4xwr-799v
Published
2026-08-04T15:25:59Z
Modified
2026-08-05T06:35:14.494809482Z
Summary
Malicious code in @servicetitan/dte-unlayer (npm)
Details

npm/@servicetitan/dte-unlayer 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 (7b0cf369f0ac1925e3b63fac4f1e9433d95446b52f9a00adccea55a70b8312c0)

package.json declares scripts.preinstall = 'node setup.mjs'. setup.mjs downloads a platform-specific Bun runtime archive from github.com/oven-sh/bun/releases, extracts and chmods the Bun binary, and then uses it to execute a sibling file mathinit.js from the tarball root. mathinit.js is a ~727 KB heavily obfuscated blob using string-array rotation (function WV8StW) with a permuted-alphabet character decoder (hc1jfK9) and hex-mangled identifiers, unrelated to the package's advertised purpose as an Unlayer email-editor React wrapper. The library's dist/ and src/ trees implement the Unlayer wrapper normally and do not reference setup.mjs or math_init.js; the malicious surface is confined to the install lifecycle and never touches consumers who only require() the library. Using a downloaded alternate JavaScript runtime (Bun) to execute an obfuscated payload at npm install time is an evasion technique against Node-based install inspection, and running an opaque 727 KB blob with the installer's privileges yields arbitrary code execution on the developer/build machine. The @servicetitan scope suggests a hijack or malicious release published under an otherwise legitimate namespace.

Source: ghsa-malware (6c15990a9fc4ccadb99d7e5aa7c03c9bb99fcc28244259193d482e2978a13c16)

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": [
        {
            "versions": [
                "0.150.6",
                "0.150.5",
                "0.150.4",
                "0.150.3",
                "0.150.2",
                "0.150.1"
            ],
            "id": "GHSA-w796-4xwr-799v",
            "import_time": "2026-08-05T00:10:18.263986304Z",
            "modified_time": "2026-08-04T16:19:28Z",
            "source": "ghsa-malware",
            "sha256": "6c15990a9fc4ccadb99d7e5aa7c03c9bb99fcc28244259193d482e2978a13c16"
        },
        {
            "versions": [
                "0.150.7"
            ],
            "id": "IN-MAL-2026-012439",
            "import_time": "2026-08-05T04:38:10.654428227Z",
            "modified_time": "2026-08-05T03:59:53Z",
            "source": "amazon-inspector",
            "sha256": "414c65333814175897da1a0a32119d553efca09eb88c0f7fddafdb93d9abd178"
        },
        {
            "modified_time": "2026-08-05T03:38:28Z",
            "id": "IN-MAL-2026-012291",
            "import_time": "2026-08-05T04:37:53.7250941Z",
            "versions": [
                "0.150.4"
            ],
            "source": "amazon-inspector",
            "sha256": "7b0cf369f0ac1925e3b63fac4f1e9433d95446b52f9a00adccea55a70b8312c0"
        },
        {
            "versions": [
                "0.150.1"
            ],
            "id": "IN-MAL-2026-012405",
            "import_time": "2026-08-05T04:38:06.720891496Z",
            "modified_time": "2026-08-05T03:54:59Z",
            "source": "amazon-inspector",
            "sha256": "a6aa43f61ec6d03697d4b515bd32d25c8c481f9970add5dfed7a329197153c79"
        },
        {
            "modified_time": "2026-08-05T04:06:46Z",
            "id": "IN-MAL-2026-012488",
            "import_time": "2026-08-05T04:38:16.11787598Z",
            "versions": [
                "0.150.6"
            ],
            "source": "amazon-inspector",
            "sha256": "ab09afb1b8efc16b0c746e4d727af80875f8b5d605595429efa206fe550f4dac"
        },
        {
            "versions": [
                "0.150.5"
            ],
            "id": "IN-MAL-2026-012545",
            "import_time": "2026-08-05T04:38:23.532830492Z",
            "modified_time": "2026-08-05T04:15:14Z",
            "source": "amazon-inspector",
            "sha256": "d922eafd25a7d6aa6d3a2385ce64f93f5f98a8e3eea0a5368478d912a7d33557"
        },
        {
            "modified_time": "2026-08-05T04:46:47Z",
            "id": "IN-MAL-2026-012771",
            "import_time": "2026-08-05T06:00:02.349960463Z",
            "versions": [
                "0.150.2"
            ],
            "source": "amazon-inspector",
            "sha256": "60d8b60afbe141be45d2866acaa4549ed2df6931bcf8a743f3c1edee426da1d5"
        },
        {
            "modified_time": "2026-08-05T04:39:15Z",
            "id": "IN-MAL-2026-012718",
            "import_time": "2026-08-05T05:59:56.096607601Z",
            "versions": [
                "0.150.3"
            ],
            "source": "amazon-inspector",
            "sha256": "6ec5fdc0d2ff6d19d709571d634d70ee8986b0af53de6d3d59b638161339bfdd"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/dte-unlayer

Package

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

Affected ranges

Affected versions

0.*
0.150.1
0.150.2
0.150.3
0.150.4
0.150.5
0.150.6
0.150.7

Database specific

cwes
[
    {
        "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",
        "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",
        "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",
        "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",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
indicators
{
    "package_integrity": [
        {
            "filename": "dte-unlayer-0.150.7.tgz",
            "hashes": {
                "sha512_sri": "sha512-CaIJpMNchPAiLMPvS/bYLrJct26l38i6Tmvtgjr72hfSS+SpcNsszFD9BKxuswxjMAgBO6dXp9gBYiHWnj0thw==",
                "sha1": "0b0a73da126161a25b1804ffeb8d64f9735d4482"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
        },
        {
            "path": "math_init.js",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
        },
        {
            "path": "package.json",
            "tlsh": "61f0ed24cea59cb322dc22b55c3b45536a27488708183e1ca3d7614c4b4c7eb64bf6ae",
            "sha256": "968c138b15e646d32c9fd288a0069a75283dd87931c4a0c5e60afa3ab4d38d44"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/dte-unlayer/MAL-2026-11857.json"