MAL-2026-11743

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/browserslist-config/MAL-2026-11743.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11743
Aliases
  • GHSA-vw7j-698w-fqgm
Published
2026-08-04T15:12:50Z
Modified
2026-08-05T03:20:04.498000843Z
Summary
Malicious code in @ornikar/browserslist-config (npm)
Details

npm/@ornikar/browserslist-config 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 (1ae69f4eb48f0147d86c7ce81481d520e709182b702e9c07bde3ddc6a3f3c988)

The package's advertised purpose is a static browserslist configuration (degraded-support.js exports a one-line array). Its package.json declares a preinstall hook node setup.mjs that runs automatically on npm install. setup.mjs is written with obfuscator.io-style renaming and per-function string dictionaries (_0xNNNN variable names, indirected literals such as --version, musl, /etc/os-release, Alpine, and the download host) to hide its logic. It constructs a URL of the form https://github.com/oven-sh/bun/releases/download/bun-v<version>/<arch>.zip, downloads and extracts the Bun runtime into a temp directory, marks it executable, and invokes it via execFileSync(bunPath, [join(D, 'math_init.js')], {cwd: D}) against a locally-shipped 728KB bundle. math_init.js is a Bun-compiled artifact (// @bun @bun-cjs) containing a ~4000-entry numeric/string constants array n7gIxM and a rotator function WV8StW that permutes it at runtime — a canonical string-array obfuscation shape used to conceal endpoints, credentials, and behavior. A browserslist configuration has no functional need for an alternate JavaScript runtime or a large opaque bundle, and the choice to fetch Bun specifically causes the payload to bypass Node-focused install-time scanners. The combination of obfuscated preinstall logic, an alternate-runtime fetch from outside the ecosystem's normal install path, and auto-execution of an opaque local bundle constitutes install-time remote code execution on the installer's machine, with the executed payload's behavior deliberately hidden from static review.

Source: ghsa-malware (e3447b4a08116debde2221ae77237c1a5eca8b077ff9040d0d4382da5e611b23)

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": [
        {
            "import_time": "2026-08-05T00:10:18.26010928Z",
            "sha256": "e3447b4a08116debde2221ae77237c1a5eca8b077ff9040d0d4382da5e611b23",
            "modified_time": "2026-08-04T22:57:10Z",
            "id": "GHSA-vw7j-698w-fqgm",
            "versions": [
                "8.0.11",
                "8.0.10",
                "8.0.7",
                "8.0.6",
                "8.0.5",
                "8.0.4",
                "8.0.3"
            ],
            "source": "ghsa-malware"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T00:08:48Z",
            "sha256": "f97a48b242fe552678bcbcf685a255c60a6840c115f691558dc0c1a24e251a86",
            "id": "IN-MAL-2026-011391",
            "versions": [
                "8.0.10"
            ],
            "import_time": "2026-08-05T00:44:42.369315501Z"
        },
        {
            "import_time": "2026-08-05T03:11:26.890248138Z",
            "modified_time": "2026-08-05T02:02:37Z",
            "sha256": "c73499c9efd004b4f06a2929b4470638e230c4822b582041247dd7f007f43d0c",
            "id": "IN-MAL-2026-011613",
            "versions": [
                "8.0.9"
            ],
            "source": "amazon-inspector"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:47:02Z",
            "sha256": "fb159afacf6859d1fb97117e998c57102cf4a0884fd16370288b233ee3e9040b",
            "id": "IN-MAL-2026-011927",
            "versions": [
                "8.0.8"
            ],
            "import_time": "2026-08-05T03:12:00.778368323Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:19:07Z",
            "sha256": "1005cb14110fde4f6358dfb69ff0e77485f169279cf482e8dc0c4711bd00b1c9",
            "id": "IN-MAL-2026-011728",
            "versions": [
                "8.0.7"
            ],
            "import_time": "2026-08-05T03:11:39.57710622Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:47:19Z",
            "sha256": "1ae69f4eb48f0147d86c7ce81481d520e709182b702e9c07bde3ddc6a3f3c988",
            "id": "IN-MAL-2026-011929",
            "versions": [
                "8.0.6"
            ],
            "import_time": "2026-08-05T03:12:00.953974697Z"
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-05T02:47:29Z",
            "sha256": "a4dddeb35d69ab9c349bc594d1836f63120d6b2eb95f1bb8ee3a33eb800ca379",
            "id": "IN-MAL-2026-011930",
            "versions": [
                "8.0.4"
            ],
            "import_time": "2026-08-05T03:12:01.058433492Z"
        },
        {
            "import_time": "2026-08-05T03:12:01.658448824Z",
            "modified_time": "2026-08-05T02:48:15Z",
            "sha256": "ae32a5b8923377231c79da15c2c2fe19a9acafd07f9a1b658727faf80d8e9b42",
            "id": "IN-MAL-2026-011936",
            "versions": [
                "8.0.3"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T03:11:19.105374431Z",
            "modified_time": "2026-08-05T01:52:16Z",
            "sha256": "be4beb41b491f356063e240d21e75bc3dc23c1222c5ccda06e2244aa2171e0df",
            "id": "IN-MAL-2026-011541",
            "versions": [
                "8.0.5"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @ornikar/browserslist-config

Package

Name
@ornikar/browserslist-config
View open source insights on deps.dev
Purl
pkg:npm/%40ornikar/browserslist-config

Affected ranges

Affected versions

8.*
8.0.3
8.0.4
8.0.5
8.0.6
8.0.7
8.0.8
8.0.9
8.0.10
8.0.11

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",
        "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",
        "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-hiqdXxwLcpG5AqyycDyqkPtGZo2pu27gcBQr0tfJZ+xzm0W5Y7fyYdg+QfcM0quWylz9ZgDFDhKLP9yxonKnSg==",
                "sha1": "6edd41e182d86223298665584213bc22609e8c25"
            },
            "filename": "browserslist-config-8.0.10.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        },
        {
            "path": "package.json",
            "sha256": "0bf974531709f99d0a04c06380b78cd28ba5cd23826b4c7abb670d04220c00c5",
            "tlsh": "baf027328d386c2b04ec1ce19c3a414b37228a4b89197c1822f7231c075e8ab547a65e"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/browserslist-config/MAL-2026-11743.json"