{"id":"CVE-2025-58765","published":"2025-09-09T20:16:26Z","modified":"2025-09-10T13:22:05Z","title":"wabac.js has XSS vulnerability in 404 error handling logic","vendor":"webrecorder","product":"wabac.js","tier":"tail","description":{"text":"wabac.js provides a full web archive replay system, or 'wayback machine', using Service Workers. A Reflected Cross-Site Scripting (XSS) vulnerability exists in the 404 error handling logic of wabac.js v2.23.10 and below. The parameter `requestURL` (derived from the original request target) is directly embedded into an inline `<script>` block without sanitization or escaping. This allows an attacker to craft a malicious URL that executes arbitrary JavaScript in the victim’s browser. The scope may be limited by CORS policies, depending on the situation in which wabac.js is used. The vulnerability is fixed in wabac.js v2.23.11.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00264,"percentile":0.18688,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/webrecorder/wabac.js/security/advisories/GHSA-w765-jm6w-4hhj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/webrecorder/wabac.js/commit/25feb4a5af69a6b65694426eae67b890be438c4c","tags":["x_refsource_MISC"]},{"url":"https://github.com/webrecorder/wabac.js/releases/tag/v2.23.11","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":3.74},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"webrecorder","affectedVersions":[{"vendor":"webrecorder","product":"wabac.js","versions":["< 2.23.11"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-10T13:21:53.291869Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@webrecorder/wabac","vulnerableRanges":["<2.23.11"],"patched":["2.23.11"],"from":["GHSA-w765-jm6w-4hhj"],"provenance":"source"},{"ecosystem":"npm","package":"replaywebpage","vulnerableRanges":["<2.3.17"],"patched":["2.3.17"],"from":["GHSA-w765-jm6w-4hhj"],"provenance":"source"},{"ecosystem":"npm","package":"@webrecorder/archivewebpage","vulnerableRanges":["<0.15.4"],"patched":["0.15.4"],"from":["GHSA-w765-jm6w-4hhj"],"provenance":"source"}],"summary":{"text":"The wabac.js web archive replay library (Service Worker-based \"wayback machine\") has a reflected cross-site scripting flaw in its 404 error handling, where the requestURL value derived from the request target is embedded unescaped into an inline script block. An attacker who gets a victim to open a crafted URL, with no authentication needed over the network but requiring user interaction, can run arbitrary JavaScript in the victim's browser, though CORS policies may limit the scope depending on how wabac.js is deployed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:01Z"},"euvd":{"id":"EUVD-2025-33982","exploited":false,"provenance":"source"}}