MAL-2026-11840

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/confirm-navigation/MAL-2026-11840.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11840
Aliases
  • GHSA-r8gg-wq5x-89gp
Published
2026-08-04T15:25:31Z
Modified
2026-08-05T05:04:55.082762121Z
Summary
Malicious code in @servicetitan/confirm-navigation (npm)
Details

npm/@servicetitan/confirm-navigation 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 (318902036ccfb233fc891efbb4f49c1a038285d6063a1f0e49b3e7638a8b9bbd)

The package's declared purpose is a small React confirm-navigation UI helper, but package.json sets scripts.preinstall to node setup.mjs, which on npm install downloads the Bun runtime (v1.3.13) from github.com/oven-sh/bun releases into a temp directory, marks it executable, and invokes it against a bundled 727KB file math_init.js. If a system bun is already present, it is used directly instead. math_init.js is a @bun-compiled bundle using string-array rotation, hex-style identifier renaming, and a multi-thousand-entry opaque literal table with no readable correspondence to the advertised React functionality; the code path is designed to execute only under the downloaded Bun runtime, hiding its behavior from Node-based inspection. The genuine React source under dist/ is small and unrelated to the obfuscated bundle. Fetching a second language runtime at install time and using it to execute a large, opaque, purpose-mismatched payload is the alternate-runtime dropper shape and is inconsistent with a UI helper library. The @servicetitan scope and legitimate-looking repository/homepage are consistent with a compromised-maintainer or scope-hijack publication rather than an authentic ServiceTitan release.

Source: ghsa-malware (d04ff510869db13070986785616b1640b534a0b272a2ba61ae69a8f6dcfdca2d)

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": [
            {
                "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.",
                "paths": [
                    "setup.mjs"
                ],
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "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.",
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "sha256": "d04ff510869db13070986785616b1640b534a0b272a2ba61ae69a8f6dcfdca2d",
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:40:59Z",
            "versions": [
                "41.3.7",
                "41.3.6",
                "41.3.4",
                "41.3.5",
                "41.3.3",
                "41.3.2",
                "41.3.1"
            ],
            "import_time": "2026-08-05T00:10:18.214361298Z",
            "id": "GHSA-r8gg-wq5x-89gp"
        },
        {
            "source": "amazon-inspector",
            "sha256": "faf338296f2261529068d7f3ba76205985b69564d8add20b8d97a8f803a5df05",
            "versions": [
                "41.3.7"
            ],
            "import_time": "2026-08-05T00:44:44.54262011Z",
            "modified_time": "2026-08-05T00:11:21Z",
            "id": "IN-MAL-2026-011408"
        },
        {
            "sha256": "87813dd1c1b10ca4cc24dbfb03e2116649885c561c083fbfa85a2cf6197ec35a",
            "source": "amazon-inspector",
            "versions": [
                "41.3.6"
            ],
            "import_time": "2026-08-05T03:12:07.680408625Z",
            "modified_time": "2026-08-05T02:56:32Z",
            "id": "IN-MAL-2026-011994"
        },
        {
            "sha256": "d158a80c371bf055fdcfb921b745fb39493d6bb134966cf5aa7fb5c96cfec1ca",
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T03:26:16Z",
            "versions": [
                "41.3.1"
            ],
            "import_time": "2026-08-05T04:37:42.789422008Z",
            "id": "IN-MAL-2026-012204"
        },
        {
            "sha256": "0218415cfbcf48ac73757f08d5655007768c1d69fa12d650888408b7be8b32a4",
            "source": "amazon-inspector",
            "versions": [
                "41.3.3"
            ],
            "import_time": "2026-08-05T04:38:40.868220023Z",
            "modified_time": "2026-08-05T04:36:30Z",
            "id": "IN-MAL-2026-012698"
        },
        {
            "source": "amazon-inspector",
            "sha256": "318902036ccfb233fc891efbb4f49c1a038285d6063a1f0e49b3e7638a8b9bbd",
            "versions": [
                "41.3.5"
            ],
            "import_time": "2026-08-05T04:38:26.49117364Z",
            "modified_time": "2026-08-05T04:18:40Z",
            "id": "IN-MAL-2026-012569"
        },
        {
            "sha256": "3de776e2d1727c31385369cc6be9b454196e8daf4f30b89c8c1f9be396bd44db",
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:37:42.11229252Z",
            "modified_time": "2026-08-05T03:25:38Z",
            "versions": [
                "41.3.2"
            ],
            "id": "IN-MAL-2026-012199"
        },
        {
            "sha256": "b06710db2e8867f46568fb2575daa786560a544b49c63f33a3bd66aee3c2d6a2",
            "source": "amazon-inspector",
            "import_time": "2026-08-05T04:38:37.844922421Z",
            "modified_time": "2026-08-05T04:32:35Z",
            "versions": [
                "41.3.4"
            ],
            "id": "IN-MAL-2026-012670"
        }
    ]
}
References
Credits

Affected packages

npm / @servicetitan/confirm-navigation

Package

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

Affected ranges

Affected versions

41.*
41.3.1
41.3.2
41.3.3
41.3.4
41.3.5
41.3.6
41.3.7

Database specific

indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha1": "51c2b09821512556589b5321dbbc23cbd11feeb1",
                "sha512_sri": "sha512-CqRYeKKbANbdNd8vjnT7Xjvo6PH06MSFTB51KyLrlXhcdX7oN7uvDuM5Y8UQpBYBaxm08fDjIIOPDYPyPjyewA=="
            },
            "filename": "confirm-navigation-41.3.7.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ]
}
cwes
[
    {
        "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.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@servicetitan/confirm-navigation/MAL-2026-11840.json"