{"id":"MAL-2026-13953","revision":"aef93abeec7e4835b3d843a85c747b85","records":[{"revision":"aef93abeec7e4835b3d843a85c747b85","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13953","aliases":[],"title":"Malicious code in js-assert-plus (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (acbf16a8956847ff7ed56158afe65bc0bf76cb36f8cb6af6bc143cae4cb9babe)\nThe npm package js-assert-plus masquerades as an assertion library (homepage http://js-assert-plus.com) and bundles the real chai source so consumers get working functionality while a loader runs on every require/import. index.js hex-decodes the strings 'child_process' and 'spawn' and spawns a detached node subprocess running lib/chai/utils/assertion.js. That sibling module is packed with obfuscator.io string-array obfuscation (rotated array _0x1b90, base64+decodeURIComponent decoder) that reconstructs a URL at runtime, performs an https GET, and passes the response body to new Function('require', body)(require) — executing attacker-controlled JavaScript on the installer's machine with require in scope. Both the require of child_process and the network destination are hidden behind runtime string reconstruction so static inspection cannot see the endpoint.\n","state":0,"publishedAt":"2026-08-13T17:16:55+00:00","modifiedAt":"2026-08-13T17:30:12.6536503+00:00","affected":[{"ecosystem":"npm","name":"js-assert-plus","ranges":[],"versions":["1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/js-assert-plus/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13953","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13953","identifiers":["MAL-2026-13953"]},"retained":false,"historicalAffected":[]}],"coverage":[]}