ADVISORIES

GitHub Advisory Database

GHSA-w765-jm6w-4hhj

Webrecorder packages are vulnerable to XSS through 404 error handling logic

Details

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.

Affected packages

EcosystemPackageAffected versions
npm@webrecorder/wabac
All versions before 2.23.11 (fixed in 2.23.11)
npmreplaywebpage
All versions before 2.3.17 (fixed in 2.3.17)
npm@webrecorder/archivewebpage
All versions before 0.15.4 (fixed in 0.15.4)

References