Advisory

MAL-2026-12371

Also known as: None

Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.

Summary

Malicious code in eth-codegen (npm)

Details

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

Source: amazon-inspector (c111948c855e4133fbd037c268523a2118038ca498e9bdba1c743d4ee77f24bc)
The package advertises itself as an Ethereum codegen utility but its actual contents are an unrelated mongoose leanhooks plugin plus a hidden dropper. index.js appends an async runHandler() concealed after ~1KB of whitespace padding following the module.exports = leanhooksPlugin; line. On require, runHandler() performs axios.get('https://www.jsonkeeper.com/b/VYFER'), then passes the response's cookie field to new Function('require',...) and invokes it with the installer's require. jsonkeeper.com is an anonymous, mutable paste host controlled by whoever created the paste, giving that party arbitrary code execution in the installer's Node process every time the package is imported. The whitespace concealment plus cover-story package name/description are deliberate evasion.

Severity

Not rated by the source.

Dates

Published
2026-08-05 12:58 UTC
Modified
2026-08-05 13:35 UTC

Affected packages and fixes

eth-codegen

npm · All systems

Affected

  • Versions: 0.5.4

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: OpenSSF Malicious Packages · Apache-2.0

Sources & licences