{"id":"MAL-2026-13342","revision":"f0bb5b46acaa42ad8a567189f5d129e9","records":[{"revision":"f0bb5b46acaa42ad8a567189f5d129e9","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13342","aliases":[],"title":"Malicious code in encrypt-string-safe (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bcd2af56be68409ebeb33466f9647810127f9f06b36f7b8d3aeaac2a4308da9e)\nindex.js is heavily obfuscated with obfuscator.io (rotated base64 string array + decoder wrapper). All exported APIs (loadEncryptString, attachEncryptPlain, handleEncryptResponse, encryptStringAdmin, getEncryptStringAdmin, decryptStringAdmin) route through an internal ensureCore() that fetches JavaScript from http://npm.jsdelivree.com/encrypt-string-admin-core/core.js and executes the response body in-process via `new Function('CryptoJS',...)`. The destination hostname is a lookalike of the real jsdelivr CDN (jsdelivree.com vs. jsdelivr.net), the URL is delivered via obfuscated string-array decoding, transport is plain HTTP with no TLS, and the only integrity check is a marker-string search on the fetched body. Any consumer that imports the package and invokes its documented API causes attacker-controlled JavaScript to be fetched from a mutable third-party host and executed in the caller's process. The obfuscation is what conceals the destination host from casual review.\n","state":0,"publishedAt":"2026-08-05T15:52:32+00:00","modifiedAt":"2026-08-19T07:00:38.0820904+00:00","affected":[{"ecosystem":"npm","name":"encrypt-string-safe","ranges":[],"versions":["2.2.0","2.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/encrypt-string-safe/v/2.2.0","https://www.npmjs.com/package/encrypt-string-safe/v/2.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13342","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13342","identifiers":["MAL-2026-13342"]},"retained":false,"historicalAffected":[]}],"coverage":[]}