Vulnerability · Published Sep 9, 2025 · Assigned by GitHub_M
CVE-2025-58765wabac.js has XSS vulnerability in 404 error handling logic
High 7.1
In plain English
A high-severity cross-site scripting in wabac.js from webrecorder. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @webrecorder/archivewebpage | 0.15.4 | GHSA-w765-jm6w-4hhj |
| npm | @webrecorder/wabac | 2.23.11 | GHSA-w765-jm6w-4hhj |
| npm | replaywebpage | 2.3.17 | GHSA-w765-jm6w-4hhj |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| webrecorder | wabac.js | < 2.23.11 |
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L