{"id":"MAL-2026-13703","revision":"61e79c0a23a74af9a1529c318e10c7ef","records":[{"revision":"61e79c0a23a74af9a1529c318e10c7ef","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13703","aliases":[],"title":"Malicious code in chai-as-promised-plus (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (be02bee1e19ad24ae6091f0793dc22af62e54030388bbdc7d1aa29b078ac17a5)\nThe package name mimics the widely-used chai-as-promised assertion helper and reuses its README/description. lib/chai-as-promised-plus.js defines the legitimate plugin factory and then overwrites module.exports with require('./config/config'), so any consumer that imports the package loads lib/config/config.js. That file is a 3,546,568-byte single-line javascript-obfuscator.io bundle (rotated string array of length 20721, two decoder functions, control-flow-flattening dispatcher of the form while(!![]){try{...}catch(o){y.push(y.shift())}}, hex-keyed object literals). A test-assertion helper has no legitimate need to ship a multi-megabyte obfuscated blob that replaces its exports at load time; the concealed payload runs in the consumer's Node.js process on require, which is the standard shape of a typosquat supply-chain attack delivering attacker-controlled code to the installer.\n","state":0,"publishedAt":"2026-08-10T12:31:42+00:00","modifiedAt":"2026-08-10T13:04:59.8539447+00:00","affected":[{"ecosystem":"npm","name":"chai-as-promised-plus","ranges":[],"versions":["6.1.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/chai-as-promised-plus/v/6.1.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13703","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13703","identifiers":["MAL-2026-13703"]},"retained":false,"historicalAffected":[]}],"coverage":[]}