{"id":"MAL-2026-13954","revision":"a44e16aa40104d7883870ae145f5f5ec","records":[{"revision":"a44e16aa40104d7883870ae145f5f5ec","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13954","aliases":[],"title":"Malicious code in minimalistic-assert-plus (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e59f4af9a6f3f95bf4cf795fb91bcf4c7934dbb90e64d750255a2a786ed7dc75)\nThe package typosquats `minimalistic-assert` and re-ships the Chai library alongside a malicious dispatcher. On `require('minimalistic-assert-plus')`, index.js spawns a detached Node child (`spawn('node', [assertion,...], {detached:true, stdio:'ignore'})`) that runs lib/chai/utils/expectAssertion.js. That file is heavily obfuscated (obfuscator.io string-array + base64 rotation, hex-named identifiers such as _0x4b784f, _0x51bd34) and at runtime constructs an HTTP URL, performs an `http.get`, and passes the response body to `new Function(..., body)(require)` — evaluating attacker-supplied JavaScript with the real Node `require` in scope. Stdio is ignored and the process is detached to evade observation. Package metadata is deceptive: name mimics `minimalistic-assert`, description is copied from Chai, and homepage points to `minimalistic-assert-plus.com`.\n","state":0,"publishedAt":"2026-08-13T17:16:48+00:00","modifiedAt":"2026-08-13T17:30:12.6269735+00:00","affected":[{"ecosystem":"npm","name":"minimalistic-assert-plus","ranges":[],"versions":["1.1.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/minimalistic-assert-plus/v/1.1.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13954","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13954","identifiers":["MAL-2026-13954"]},"retained":false,"historicalAffected":[]}],"coverage":[]}