MAL-2026-14426

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/babel-polyfill-plugin-corejs2/MAL-2026-14426.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-14426
Published
2026-08-24T16:45:38Z
Modified
2026-08-24T17:00:13.708675098Z
Summary
Malicious code in babel-polyfill-plugin-corejs2 (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (13878d994b01607c379e26646449b7cca95099f9b2eb5be2e1f8e19aeea32eb3)

The package advertises itself as a Babel core-js 2 polyfill plugin, but the shipped lib/index.js contains unrelated web3-core-subscriptions boilerplate followed by a Function() invocation whose body is ~110KB of obfuscated JavaScript (random identifiers, numeric offset arrays, TEA-like mixing routine, unicode-escape string literals). The Function() call executes whenever a consumer require()s the package, running the opaque payload at import time. The declared purpose does not match the shipped code, and the obfuscation is confined to the appended payload rather than being a general minification artifact.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-08-24T16:49:14.751664125Z",
            "modified_time": "2026-08-24T16:45:38Z",
            "versions": [
                "1.0.1"
            ],
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-018647",
            "sha256": "13878d994b01607c379e26646449b7cca95099f9b2eb5be2e1f8e19aeea32eb3"
        }
    ]
}
References
Credits

Affected packages

npm / babel-polyfill-plugin-corejs2

Package

Name
babel-polyfill-plugin-corejs2
View open source insights on deps.dev
Purl
pkg:npm/babel-polyfill-plugin-corejs2

Affected ranges

Affected versions

1.*
1.0.1

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/babel-polyfill-plugin-corejs2/MAL-2026-14426.json"
indicators
{
    "evidence_files": [
        {
            "path": "lib/index.js",
            "sha256": "e128537a49012ee255e98827ece385ecabeb4827ba8ce8dc2eaca045102666dc",
            "tlsh": "f3b3bac722fa961dcc92cea08df45e4d43a85422cfc510c4bf9b9d5ee6ae690e7e1344"
        },
        {
            "path": "package.json",
            "sha256": "0a2baad786bbd1b0fd113b5900f912aaa621a10f127b16c67beb4c2424e9eeba",
            "tlsh": "1c018920c4785eb316e923a9fc9845035270464b4c6dbc0837ac52ac8f5d5de98fc6ad"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "076c925c9d1cf6a577096db7b79ab1ef3879459c",
                "sha512_sri": "sha512-mzX1+c9z0ZZLO4As7ARbnPLaXslwBKS3y90lV/SOAPKhaBpr1L38ZQzBxEZTQWmjVM7kmqpek4BBq4N1n15Mhw=="
            },
            "filename": "babel-polyfill-plugin-corejs2-1.0.1.tgz"
        }
    ]
}