Cross-Site Scripting Vulnerability in OpenClaw Package - Unsafe Link Export
Summary
GHSA-6xcg-6q43-rj2v: Duplicate Advisory: Exported session HTML could keep unsafe markdown links. Affects openclaw versions < 2026.5.7. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
OpenClaw is an open-source application designed for managing and exporting session data. It allows users to generate HTML reports of their sessions, which can include various types of content. However, prior to version 2026.5.12, OpenClaw had a vulnerability that allowed unsafe links to be preserved in exported HTML, potentially leading to cross-site scripting (XSS) attacks.
Vulnerability Detail
The vulnerability arises from the way OpenClaw handles exported session HTML. Specifically, it fails to sanitize certain types of links, such as 'javascript:' and 'data:' links, which can be exploited by attackers. If a trusted user opens an exported file containing these malicious links, they may inadvertently execute harmful scripts in their browser. This vulnerability is classified under CWE-83, indicating an issue with improper neutralization of input during web page generation.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, users should update OpenClaw to version 2026.5.12 or later. This can be done by running the following command in your terminal: 'npm install openclaw@latest'. This command will ensure that you have the patched version of the package that addresses the XSS vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, users can manually inspect exported HTML files for any unsafe links before opening them in a browser. Avoid clicking on any links that appear suspicious or contain 'javascript:' or 'data:' protocols.
Conclusion
The cross-site scripting vulnerability in OpenClaw highlights the importance of proper input sanitization in web applications. Users are encouraged to update to the latest version to mitigate risks and ensure the security of their exported session data.
See every vulnerability recorded for openclaw →
FAQ
The vulnerability allows unsafe links to be preserved in exported session HTML, which can lead to cross-site scripting (XSS) attacks.
If you are using a version prior to 2026.5.12, your installation is affected by this vulnerability.
You can manually inspect exported HTML files for unsafe links as a temporary measure until you can update.
Attackers could execute scripts in the browser of a trusted user, potentially compromising sensitive information or performing unauthorized actions.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Related vulnerabilities
Recent vulnerabilities recorded for openclaw.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.