{ "schema_version": "1.7.4", "id": "MAL-2026-14426", "published": "2026-08-24T16:45:38Z", "modified": "2026-10-14T22:25:03.003516226Z", "aliases": [ "GHSA-9g6r-83hw-6cq2" ], "summary": "Malicious code in babel-polyfill-plugin-corejs2 (npm)", "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (13878d994b01607c379e26646449b7cca95099f9b2eb5be2e1f8e19aeea32eb3)\nThe 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.\n\n## Source: ghsa-malware (69ae525ab6e1ea4ee1d3d1cbb451a97e4e89072feb3df4c506f51eb14a34dd66)\nAny 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.\n", "affected": [ { "package": { "name": "babel-polyfill-plugin-corejs2", "ecosystem": "npm" }, "ranges": [ { "type": "SEMVER", "events": [ { "introduced": "0" } ] } ], "versions": [ "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" }, { "cweId": "CWE-506", "description": "The product contains code that appears to be malicious in nature.", "name": "Embedded Malicious Code" } ], "indicators": { "evidence_files": [ { "path": "lib/index.js", "sha256": "e128537a49012ee255e98827ece385ecabeb4827ba8ce8dc2eaca045102666dc", "tlsh": "f3b3bac722fa961dcc92cea08df45e4d43a85422cfc510c4bf9b9d5ee6ae690e7e1344" }, { "path": "package.json", "sha256": "0a2baad786bbd1b0fd113b5900f912aaa621a10f127b16c67beb4c2424e9eeba", "tlsh": "1c018920c4785eb316e923a9fc9845035270464b4c6dbc0837ac52ac8f5d5de98fc6ad" } ], "package_integrity": [ { "filename": "babel-polyfill-plugin-corejs2-1.0.1.tgz", "hashes": { "sha1": "076c925c9d1cf6a577096db7b79ab1ef3879459c", "sha512_sri": "sha512-mzX1+c9z0ZZLO4As7ARbnPLaXslwBKS3y90lV/SOAPKhaBpr1L38ZQzBxEZTQWmjVM7kmqpek4BBq4N1n15Mhw==" } } ] } } } ], "references": [ { "type": "PACKAGE", "url": "https://www.npmjs.com/package/babel-polyfill-plugin-corejs2/v/1.0.1" }, { "type": "ADVISORY", "url": "https://github.com/advisories/GHSA-9g6r-83hw-6cq2" } ], "database_specific": { "malicious-packages-origins": [ { "id": "IN-MAL-2026-018647", "import_time": "2026-08-24T16:49:14.751664125Z", "modified_time": "2026-08-24T16:45:38Z", "sha256": "13878d994b01607c379e26646449b7cca95099f9b2eb5be2e1f8e19aeea32eb3", "source": "amazon-inspector", "versions": [ "1.0.1" ] }, { "id": "GHSA-9g6r-83hw-6cq2", "import_time": "2026-10-14T22:23:09.401333799Z", "modified_time": "2026-10-14T22:21:14Z", "ranges": [ { "events": [ { "introduced": "0" } ], "type": "SEMVER" } ], "sha256": "69ae525ab6e1ea4ee1d3d1cbb451a97e4e89072feb3df4c506f51eb14a34dd66", "source": "ghsa-malware" } ] }, "credits": [ { "name": "Amazon Inspector", "contact": [ "inspector-research@amazon.com" ], "type": "FINDER" } ] }