NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2025-58765: Webrecorder packages are vulnerable to XSS through 404 error handling logic

highCVSS 3.1 7.1GHSA-w765-jm6w-4hhj

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 block without sanitization or escaping. This allows an attacker to craft a malicious URL that executes arbitrary JavaScript in the victim’s browser.

Published Sep 10, 2025

Affected packages

@webrecorder/wabac

Ecosystem
npm
Affected
< 2.23.11
Fixed in
2.23.11
Check
npm ls @webrecorder/wabac

replaywebpage

Ecosystem
npm
Affected
< 2.3.17
Fixed in
2.3.17
Check
npm ls replaywebpage

@webrecorder/archivewebpage

Ecosystem
npm
Affected
< 0.15.4
Fixed in
0.15.4
Check
npm ls @webrecorder/archivewebpage

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Patches

The vulnerability is fixed in wabac.js v2.23.11.

Credited to Dedal0.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology