{"id":"CVE-2025-59364","published":"2025-09-14T00:00:00Z","modified":"2025-09-15T15:57:53Z","title":"The express-xss-sanitizer (aka Express XSS Sanitizer) package through 2.0.0 for Node.js has an unbounded recursion…","vendor":"Express XSS Sanitizer project","product":"Express XSS Sanitizer","tier":"tail","description":{"text":"The express-xss-sanitizer (aka Express XSS Sanitizer) package through 2.0.0 for Node.js has an unbounded recursion depth in sanitize in lib/sanitize.js for a JSON request body.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00688,"percentile":0.4798,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/AhmedAdelFahim/express-xss-sanitizer","tags":[]},{"url":"https://www.npmjs.com/package/express-xss-sanitizer","tags":[]},{"url":"https://gist.github.com/Spendroslav/177804eaef5acfb222a550de212a1b94","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":9.6},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"express-xss-sanitizer-project","affectedVersions":[{"vendor":"Express XSS Sanitizer project","product":"Express XSS Sanitizer","versions":["2.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-15T15:57:46.719289Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"express-xss-sanitizer","vulnerableRanges":["<2.0.1"],"patched":["2.0.1"],"from":["GHSA-hvq2-wf92-j4f3"],"provenance":"source"}],"summary":{"text":"The Express XSS Sanitizer package (through version 2.0.0) for Node.js contains an unbounded recursion flaw in the sanitize function in lib/sanitize.js when processing JSON request bodies. An attacker with network access can trigger it without authentication or user interaction by sending a crafted JSON request body, causing a denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:56:32Z"},"euvd":{"id":"EUVD-2025-29138","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-express-xss-sanitizer-cve-2022-21169","parents":[{"from":"CVE-2022-21169","to":"CVE-2025-59364","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/sanitize.js"],"commits":["https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/3bf8aaaf4dbb1c209dcb8d87a82711a54c1ab39a","https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e4f6d6"],"basis":"rarely changed file"}]}],"children":[{"from":"CVE-2025-59364","to":"CVE-2026-33979","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:express-xss-sanitizer","fromFixed":"2.0.1","toFixed":"2.0.2","daysApart":194},{"kind":"same-code","provenance":"machine","files":["lib/sanitize.js"],"commits":["https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/62d6542a2a57298da7a2e02de623454007e4f6d6","https://github.com/AhmedAdelFahim/express-xss-sanitizer/commit/5623009ef11dcf095c163a38dea07b9cc22ad19f"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-21169","published":"2022-09-26","fixed":"1.1.3","kev":false},{"cve":"CVE-2025-59364","published":"2025-09-14","fixed":"2.0.1","kev":false},{"cve":"CVE-2026-33979","published":"2026-03-27","fixed":"2.0.2","kev":false}],"package":"npm:express-xss-sanitizer"}}