{"id":"MAL-2026-10059","revision":"94de202c24d34b4794a055e25d49cc07","records":[{"revision":"94de202c24d34b4794a055e25d49cc07","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10059","aliases":[],"title":"Malicious code in cookie-parser-es (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b33910f1e874310521f231a698952504d94e6fbdb08ef9d43e02ee220afc18b1)\nPackage name and metadata impersonate the widely-used `cookie-parser` middleware: README, API surface, and `package.json` author (`TJ Holowaychuk <tj@vision-media.ca>`) and repository (`expressjs/js-cookie-parser`) are copied from the legitimate package, with an additional contributor `jeandupontmail24@gmail.com` appended. The factory in `index.js` lines 39-41 calls `var Cookies = require('cookie-ease'); Cookies.set(\"\", \"\", {expires: 0})` — `cookie-ease` is NOT declared in `dependencies` and is loaded/executed the moment a consumer wires the middleware following the README's `app.use(cookieParser())` example. A second related package `set-cookie-ease` is declared in `dependencies` pinned to `\"latest\"` (mutable), allowing the maintainer to swap the executed payload after registry scans pass. The combination of name confusion against a top-100 npm package, identity impersonation of a well-known author, runtime loading of an undeclared sister package, and a mutable `latest` pin matches the standard typosquat-dropper supply-chain attack shape.\n","state":0,"publishedAt":"2026-07-09T16:19:35+00:00","modifiedAt":"2026-07-09T16:31:56.9570454+00:00","affected":[{"ecosystem":"npm","name":"cookie-parser-es","ranges":[],"versions":["1.0.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/cookie-parser-es/v/1.0.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10059","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10059","identifiers":["MAL-2026-10059"]},"retained":false,"historicalAffected":[]}],"coverage":[]}