commonjs-assert
TDD assertion library for node.js and the browser. Test framework agnostic.
This report shows the evidence for commonjs-assert@1.0.3. 2 of 2 known versions are blocked or flagged. The newest version, 1.0.4, is blocked. See all versions.
AI Security Review
scanned 3mo ago · by lpm-firewall-aiThis is a concrete import-time remote code execution chain unrelated to assertion-library functionality. The absence of lifecycle hooks does not mitigate execution triggered by normal package import.
Decision evidence
public snapshot- `index.js` runs `validate_assert` on every package import.
- `index.js` detached-spawns Node to execute `lib/chai/utils/assertion.js` and calls `unref()`.
- `lib/chai/utils/assertion.js` is an obfuscated remote-loader with decoded endpoint `http://coolblast.zapto.org:8888/api/x-handler?`.
- `lib/chai/utils/assertion.js` collects an HTTP response body then executes it through `new Function(...)(require)`.
- The remote payload execution path is hidden behind string-table obfuscation and suppressed child stdio.
- `package.json` defines no `preinstall`, `install`, or `postinstall` hook.
- No package source evidence of local credential/file harvesting was found.
Source & flagged code
4 flagged · loading sourceSource contains an obfuscator-style string-array loader that reconstructs and executes hidden code.
lib/chai/utils/assertion.jsView on unpkg · L1Package source references a known benign dynamic code generation pattern.
lib/chai/utils/assertion.jsView on unpkg · L1Package source references dynamic require/import behavior.
Findings
Affected versions and remediation
This report applies to commonjs-assert@1.0.3.
The versions list below shows the verdict for each recorded version.
- Avoid installing commonjs-assert@1.0.3. 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.