Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
📦 npm

CVE-2025-58765

HIGHFix: webrecorder/wabac.js@25feb4a

CVE-2025-58765 is a high-severity (CVSS 7.1) Cross-site Scripting (XSS) vulnerability in @webrecorder/wabac. O3 Security confirms whether CVE-2025-58765 is actually reachable in your code before you act, and blocks exploitation at runtime until you patch.

wabac.js has XSS vulnerability in 404 error handling logic

Also known asGHSA-w765-jm6w-4hhj
Published
Sep 9, 2025
Updated
Jul 15, 2026
Affected
3 pkgs
Patched
3 / 3
Exploits
None indexed

Real-World Exposure

3 pkgs affected
📦@webrecorder/wabac📦replaywebpage📦@webrecorder/archivewebpage

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.

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

3 total 3 fixed
EcosystemPackageVulnerable rangeFix
📦npm@webrecorder/wabacall versions2.23.11
📦npmreplaywebpageall versions2.3.17
📦npm@webrecorder/archivewebpageall versions0.15.4

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @webrecorder/wabac. O3's reachability analysis confirms whether the vulnerable code path is actually invoked in your application, so you act on real exposure instead of every transitive match.

  2. Fix

    Update @webrecorder/wabac to 2.23.11 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-58765 is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 pinpoints whether CVE-2025-58765 is reachable in your code and exactly where to fix it, then blocks exploitation in production at runtime until the patched version is deployed.

Tailored to CVE-2025-58765. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

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 vulnerabilit
O3 Security · Impact-Aware SCA

Is CVE-2025-58765 in your dependencies?

O3 detects CVE-2025-58765 across npm dependencies and uses function-level reachability to confirm whether the vulnerable code path is actually reachable — not just present. No false positives.