{"answers":{"affected":"6 open source packages ship an affected version, including @webrecorder/archivewebpage, @webrecorder/wabac and replaywebpage.","exploited":"There is no known exploitation of CVE-2025-58765 in the wild and no public exploit code.","fix":"Upgrade @webrecorder/archivewebpage to 0.15.4 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-58765 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2025-58765 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @webrecorder/archivewebpage (npm): affected all versions; fixed in 0.15.4\n- @webrecorder/archivewebpage (npm): affected all versions; fixed in 0.15.4\n- @webrecorder/wabac (npm): affected all versions; fixed in 2.23.11\n- @webrecorder/wabac (npm): affected all versions; fixed in 2.23.11\n- replaywebpage (npm): affected all versions; fixed in 2.3.17\n- replaywebpage (npm): affected all versions; fixed in 2.3.17\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-58765/ (Markdown: https://insights.sbomify.com/CVE-2025-58765/index.md)","id":"CVE-2025-58765","markdown":"https://insights.sbomify.com/CVE-2025-58765/index.md","name":"CVE-2025-58765","record":{"aliases":["GHSA-w765-jm6w-4hhj"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Web archive replay library","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript in victims' browsers via reflected XSS in wabac.js 404 error handling, requiring an upgrade to fix.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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 `\u003cscript\u003e` 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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"wabac.js has XSS vulnerability in 404 error handling logic","id":"CVE-2025-58765","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2025"},"n_packages":6,"n_references":3,"next":{"headline":"Dyad Vulnerable to Remote Code Execution via Top-level Navigation in Preview Window","id":"CVE-2025-58766"},"packages":[{"ecosystem":"npm","fixed":["0.15.4"],"introduced":["0"],"last_affected":[],"package":"@webrecorder/archivewebpage","purl":null,"source":"GHSA-w765-jm6w-4hhj"},{"ecosystem":"npm","fixed":["0.15.4"],"introduced":["0"],"last_affected":[],"package":"@webrecorder/archivewebpage","purl":"pkg:npm/%40webrecorder/archivewebpage","source":"GHSA-w765-jm6w-4hhj"},{"ecosystem":"npm","fixed":["2.23.11"],"introduced":["0"],"last_affected":[],"package":"@webrecorder/wabac","purl":null,"source":"GHSA-w765-jm6w-4hhj"},{"ecosystem":"npm","fixed":["2.23.11"],"introduced":["0"],"last_affected":[],"package":"@webrecorder/wabac","purl":"pkg:npm/%40webrecorder/wabac","source":"GHSA-w765-jm6w-4hhj"},{"ecosystem":"npm","fixed":["2.3.17"],"introduced":["0"],"last_affected":[],"package":"replaywebpage","purl":null,"source":"GHSA-w765-jm6w-4hhj"},{"ecosystem":"npm","fixed":["2.3.17"],"introduced":["0"],"last_affected":[],"package":"replaywebpage","purl":"pkg:npm/replaywebpage","source":"GHSA-w765-jm6w-4hhj"}],"prev":{"headline":"Claude Code rg command had Command Injection that allowed bypass of user approval prompt for command execution","id":"CVE-2025-58764"},"products":["wabac.js"],"published":"2025-09-09","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-10","vendors":["webrecorder"]},"summary":"Attackers can execute arbitrary JavaScript in victims' browsers via reflected XSS in wabac.js 404 error handling, requiring an upgrade to fix.","url":"https://insights.sbomify.com/CVE-2025-58765/"}