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

High 7.1 Published Updated

Attackers can execute arbitrary JavaScript in victims' browsers via reflected XSS in wabac.js 404 error handling, requiring an upgrade to fix.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-58765?

CVE-2025-58765 is a high-severity cross-site scripting vulnerability in webrecorder wabac.js, published on 9 Sep 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

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.

Weakness: CWE-79

Which versions are affected by CVE-2025-58765?

6 open source packages ship an affected version, including @webrecorder/archivewebpage, @webrecorder/wabac and replaywebpage.

PackageAffectedFixed in
@webrecorder/archivewebpage npmAll versions0.15.4
@webrecorder/archivewebpage npmAll versions0.15.4
@webrecorder/wabac npmAll versions2.23.11
@webrecorder/wabac npmAll versions2.23.11
replaywebpage npmAll versions2.3.17
replaywebpage npmAll versions2.3.17

How do I fix CVE-2025-58765?

Upgrade @webrecorder/archivewebpage to 0.15.4 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-58765 being exploited?

There is no known exploitation of CVE-2025-58765 in the wild and no public exploit code.

Sources

Also known as GHSA-w765-jm6w-4hhj.

Is CVE-2025-58765 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free