CVE-2025-58765
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.
How to fix
- @webrecorder/wabac2.23.11 or later
- replaywebpage2.3.17 or later
- @webrecorder/archivewebpage0.15.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| @webrecorder/wabacnpm | v < 2.23.11 | 2.23.11 |
| replaywebpagenpm | v < 2.3.17 | 2.3.17 |
| @webrecorder/archivewebpagenpm | v < 0.15.4 | 0.15.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.