MAL-2026-11759

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/jest-config-react/MAL-2026-11759.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11759
Aliases
  • GHSA-m6f5-5vx6-9xvj
Published
2026-08-04T15:13:52Z
Modified
2026-08-05T03:19:49.220697788Z
Summary
Malicious code in @ornikar/jest-config-react (npm)
Details

npm/@ornikar/jest-config-react 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 (49a6171d454f86978744272cb3137de7d90db74a93bf519250701c1661ec6331)

Version 18.0.9 of this Jest React preset introduces a preinstall lifecycle script (node setup.mjs) absent from prior releases. setup.mjs downloads the Bun runtime binary from https://github.com/oven-sh/bun/releases/download/bun-v1.3.13/<platform>.zip, extracts it to a temporary directory, chmods it executable, and invokes it against a bundled sibling file math_init.js via execFileSync(bun, [path.join(D, 'math_init.js')]). math_init.js is a 727KB single-line file headed // @bun @bun-cjs that uses hex-array + rotated string-array decoding with _0x-style identifiers, contains no readable strings, and is intended to be executed only by the freshly-fetched Bun runtime — evading Node-based static scanners. The package's declared purpose is a Jest configuration preset for React; nothing in that scope requires the Bun runtime or a 727KB obfuscated binary. The abrupt addition of both a preinstall hook and an alternate-runtime-executed payload in this release, relative to prior versions of the preset, matches the fingerprint of a compromised-maintainer malicious republish. Installing this version triggers automatic execution of the obfuscated payload under an unrelated runtime on npm install.

Source: ghsa-malware (b9f542e41916971a145f95c883d1d3b5eae3b92739244b3ec79502da3fd0dace)

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": [
                "18.0.11",
                "18.0.10",
                "18.0.9",
                "18.0.8",
                "18.0.7",
                "18.0.6",
                "18.0.5",
                "18.0.4",
                "18.0.3",
                "18.0.2"
            ],
            "id": "GHSA-m6f5-5vx6-9xvj",
            "import_time": "2026-08-05T00:10:18.1372769Z",
            "modified_time": "2026-08-04T16:44:54Z",
            "source": "ghsa-malware",
            "sha256": "b9f542e41916971a145f95c883d1d3b5eae3b92739244b3ec79502da3fd0dace"
        },
        {
            "modified_time": "2026-08-05T00:07:15Z",
            "id": "IN-MAL-2026-011380",
            "import_time": "2026-08-05T00:44:40.732082943Z",
            "versions": [
                "18.0.11"
            ],
            "source": "amazon-inspector",
            "sha256": "c88fe6aec959a25c897df305c29b81633803c3a47ebfb40ec17fe0499a911302"
        },
        {
            "modified_time": "2026-08-05T02:14:47Z",
            "id": "IN-MAL-2026-011698",
            "import_time": "2026-08-05T03:11:36.685457793Z",
            "versions": [
                "18.0.7"
            ],
            "source": "amazon-inspector",
            "sha256": "a7cbfeb7ec315a1545621d0654c77cc0e870d0b8acae4d43d9eefbc21c54395f"
        },
        {
            "versions": [
                "18.0.5"
            ],
            "id": "IN-MAL-2026-011624",
            "import_time": "2026-08-05T03:11:28.018721341Z",
            "modified_time": "2026-08-05T02:04:06Z",
            "source": "amazon-inspector",
            "sha256": "b61cb6c42beddf1f3c491cd22f66075bfa967a17d817d096538fa8f6c223778c"
        },
        {
            "versions": [
                "18.0.2"
            ],
            "id": "IN-MAL-2026-011955",
            "import_time": "2026-08-05T03:12:03.628979322Z",
            "modified_time": "2026-08-05T02:51:03Z",
            "source": "amazon-inspector",
            "sha256": "5d94492c9a9735b372793231b5424939ee97ea91eb887ebed72d8d48eea8580e"
        },
        {
            "modified_time": "2026-08-05T02:50:19Z",
            "id": "IN-MAL-2026-011950",
            "import_time": "2026-08-05T03:12:03.143985794Z",
            "versions": [
                "18.0.6"
            ],
            "source": "amazon-inspector",
            "sha256": "64285740b3494a3772eb645d4cccf425a8ccbd27252ba5f4808f4534a1afb202"
        },
        {
            "modified_time": "2026-08-05T02:50:08Z",
            "id": "IN-MAL-2026-011949",
            "import_time": "2026-08-05T03:12:03.026079662Z",
            "versions": [
                "18.0.8"
            ],
            "source": "amazon-inspector",
            "sha256": "735f8cf3b1e8df168b2fe5b7e6813470bb81de785d6714643149eb1b59f56006"
        },
        {
            "modified_time": "2026-08-05T02:00:03Z",
            "id": "IN-MAL-2026-011595",
            "import_time": "2026-08-05T03:11:24.946037617Z",
            "versions": [
                "18.0.3"
            ],
            "source": "amazon-inspector",
            "sha256": "1e7abbc4e6553e92542249dd311dd0f9a50f133a584126d2ac62f1aee7847b17"
        },
        {
            "versions": [
                "18.0.9"
            ],
            "id": "IN-MAL-2026-011622",
            "import_time": "2026-08-05T03:11:27.839069467Z",
            "modified_time": "2026-08-05T02:03:49Z",
            "source": "amazon-inspector",
            "sha256": "49a6171d454f86978744272cb3137de7d90db74a93bf519250701c1661ec6331"
        },
        {
            "versions": [
                "18.0.4"
            ],
            "id": "IN-MAL-2026-011952",
            "import_time": "2026-08-05T03:12:03.313486008Z",
            "modified_time": "2026-08-05T02:50:35Z",
            "source": "amazon-inspector",
            "sha256": "5a4bdc640dfab8dfc5917f65956c51e68cd4f0dd9b8fbf4becc58f243ba22ae7"
        },
        {
            "versions": [
                "18.0.10"
            ],
            "id": "IN-MAL-2026-011954",
            "import_time": "2026-08-05T03:12:03.550655313Z",
            "modified_time": "2026-08-05T02:50:50Z",
            "source": "amazon-inspector",
            "sha256": "a085b32f80340d82652faa8b41eebcf4553d035cc40a75f512862672ca3bba9a"
        }
    ]
}
References
Credits

Affected packages

npm / @ornikar/jest-config-react

Package

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

Affected ranges

Affected versions

18.*
18.0.2
18.0.3
18.0.4
18.0.5
18.0.6
18.0.7
18.0.8
18.0.9
18.0.10
18.0.11

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."
    },
    {
        "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."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@ornikar/jest-config-react/MAL-2026-11759.json"
indicators
{
    "package_integrity": [
        {
            "filename": "jest-config-react-18.0.11.tgz",
            "hashes": {
                "sha512_sri": "sha512-fb+lvB5cqRhqEzzoJ8KWfsiX6tDhCOWQ8m0cFmtukxgjmw6pSXCwGi7SEqKsVhInnKkgjeez47bhK90GvKGRnw==",
                "sha1": "28dbc11be8d13f2a6d55b8b323510cb2e23eb025"
            }
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb"
        },
        {
            "path": "math_init.js",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc"
        }
    ]
}