# CVE-2025-58765: wabac.js has XSS vulnerability in 404 error handling logic

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-09-09T20:16:26.657Z
- Modified: 2026-06-17T09:44:53.997Z
- Also known as: GHSA-w765-jm6w-4hhj
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- webrecorder wabac.js: < 2.23.11
- @webrecorder/wabac (npm): before 2.23.11
- replaywebpage (npm): before 2.3.17
- @webrecorder/archivewebpage (npm): before 0.15.4

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L`

## References

- <https://github.com/webrecorder/wabac.js/security/advisories/GHSA-w765-jm6w-4hhj> (web)
- <https://github.com/webrecorder/wabac.js/commit/25feb4a5af69a6b65694426eae67b890be438c4c> (web)
- <https://github.com/webrecorder/wabac.js/releases/tag/v2.23.11> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58765> (advisory)
- <https://github.com/webrecorder/archiveweb.page/pull/315> (web)
- <https://github.com/webrecorder/replayweb.page/pull/448> (web)
- <https://github.com/webrecorder/replayweb.page/releases/tag/v2.3.17> (web)
- <https://github.com/webrecorder/wabac.js> (package)

## Sources

- CVE List: [CVE-2025-58765](https://www.cve.org/CVERecord?id=CVE-2025-58765), CVE Terms of Use, modified 2025-09-10
- GitHub Advisory Database: [GHSA-w765-jm6w-4hhj](https://github.com/advisories/GHSA-w765-jm6w-4hhj), CC-BY-4.0, modified 2025-09-10
- NVD: [CVE-2025-58765](https://nvd.nist.gov/vuln/detail/CVE-2025-58765), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-58765 · Whole record: https://cve.day/CVE-2025-58765.json · Rebuilt by cve.day 2026-11-25T22:59:04.469Z
