Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ MAL-2026-4611 — midpatch

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

Description

Malicious code in midpatch (npm)

Source: amazon-inspector

The package advertises a logger middleware (keywords fast/logger/stream/json, exports module.exports.pino = middleware, file.js wraps a ./pino module) so consumers will install and mount it as Express middleware. On first invocation, index.js spawns a detached, stdio-ignored child process running node lib/caller.js, which fetches JavaScript from https://jsonkeeper.com/b/XRGF3 (a public, attacker-mutable paste host) and evaluates the response's cookie field via new Function.constructor('require', s)(require), granting the remote payload full Node require access. The C2 URLs are base64-obfuscated inside fake process.env defaults (DEV_API_KEY: "aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1hSR0Yz" and a second paste ID 4NAKK in lib/const.js) to evade casual review and string scanners. The combination of pino-shaped lure + detached/hidden child + remote-fetched eval from a mutable paste host + base64-hidden endpoints is unambiguous supply-chain RCE — any consumer that mounts the middleware executes attacker-controlled code.

Affected software

MAL-2026-4611 is recorded against 1 package.

  • midpatch

Timeline and source

Published on 23 May 2026 and last revised on 26 May 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-05-23
Updated 2026-08-20
Modified 2026-05-26
Fix URL N/A

Affected Packages

Software From version Fixed in
midpatch

Free Vulnerability Check

Is your site affected by MAL-2026-4611?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against MAL-2026-4611 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.

Browse related advisories

All advisoriesMalicious packagesMalicious packages 2026