{"id":"CVE-2025-58765","aliases":["CVE-2025-58765","GHSA-w765-jm6w-4hhj"],"related":[],"kind":"vulnerability","state":"published","title":"wabac.js has XSS vulnerability in 404 error handling logic","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis allows an attacker to craft a malicious URL that executes arbitrary JavaScript in the victim’s browser.\n\nThe scope may be limited by CORS policies, depending on the situation in which wabac.js is used.\n\n### Patches\n\nThe vulnerability is fixed in wabac.js v2.23.11.","format":"markdown","source":"ghsa"}],"published":"2025-09-09T20:16:26.657Z","modified":"2026-06-17T09:44:53.997Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","score":7.1,"rating":"HIGH"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"< 2.23.11","status":"affected"}],"vendor":"webrecorder","product":"wabac.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.23.11"}],"ecosystem":"npm","package":"@webrecorder/wabac","purl":"pkg:npm/%40webrecorder/wabac","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.17"}],"ecosystem":"npm","package":"replaywebpage","purl":"pkg:npm/replaywebpage","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.15.4"}],"ecosystem":"npm","package":"@webrecorder/archivewebpage","purl":"pkg:npm/%40webrecorder/archivewebpage","source":"ghsa"}],"references":[{"url":"https://github.com/webrecorder/wabac.js/security/advisories/GHSA-w765-jm6w-4hhj","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/webrecorder/wabac.js/commit/25feb4a5af69a6b65694426eae67b890be438c4c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/webrecorder/wabac.js/releases/tag/v2.23.11","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58765","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/webrecorder/archiveweb.page/pull/315","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/webrecorder/replayweb.page/pull/448","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/webrecorder/replayweb.page/releases/tag/v2.3.17","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/webrecorder/wabac.js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-10T13:21:53.291Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-58765","url":"https://www.cve.org/CVERecord?id=CVE-2025-58765","licence":"CVE Terms of Use","modified":"2025-09-10T13:22:05.307Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w765-jm6w-4hhj","url":"https://github.com/advisories/GHSA-w765-jm6w-4hhj","licence":"CC-BY-4.0","modified":"2025-09-10T17:13:45.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-58765","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58765","licence":"Public domain","modified":"2026-06-17T09:44:53.997Z"}],"updatedAt":"2026-11-25T22:59:04.469Z","epss":{"score":0.0028,"percentile":0.22043,"date":"2026-12-01T12:00:22.000Z"}}