Skip to content
OpenAdvisories
High · 7.1 CVE-2025-58765 EUVD-2025-33982GHSA-w765-jm6w-4hhj

wabac.js has XSS vulnerability in 404 error handling logic

Published Sep 9, 2025 · Updated Sep 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
webrecorder wabac.js < 2.23.11 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @webrecorder/archivewebpage < 0.15.4 0.15.4 GHSA-w765-jm6w-4hhj
npm @webrecorder/wabac < 2.23.11 2.23.11 GHSA-w765-jm6w-4hhj
npm replaywebpage < 2.3.17 2.3.17 GHSA-w765-jm6w-4hhj

References