🛡️ MAL-2026-10042 — chai-as-disarmed

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

Description

Malicious code in chai-as-disarmed (npm)

Source: amazon-inspector

Package name typosquats chai-as-promised while the README and keywords impersonate pino to bait installs. On require(), index.js detach-spawns lib/caller.js, which decodes a base64-stored URL to https://api.jsonstorage.net/v1/json/2ef8c758-.../a179ea35-..., issues an authenticated GET (header name and value are also base64-hidden inside a local object that shadows process.env), and executes the returned .cookie string via new Function.constructor('require', s)(require) — granting the remote operator arbitrary code execution in the installer's Node.js process with full require access. The fetch retries up to 5 times. The remote content sits in a mutable third-party JSON store, so the executed payload can be swapped at any time without republishing the package. None of this behavior corresponds to the advertised chai/pino functionality.

Affected software

MAL-2026-10042 is recorded against 1 package.

  • chai-as-disarmed

Timeline and source

Published on 9 July 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-07-09
Updated 2026-08-20
Modified 2026-07-09
Fix URL N/A

Affected Packages

Software From version Fixed in
chai-as-disarmed

Free Vulnerability Check

Is your site affected by MAL-2026-10042?

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