CVE-2026-53841: OpenClaw: Exported session HTML could keep unsafe markdown links
OpenClaw 2026.5.7 and earlier can write `javascript:` and `data:` links into the HTML it generates when you export a session. If an operator opens the exported file and clicks such a link, script runs in their browser. Upgrade to 2026.5.12.
Published Jun 18, 2026 · Analysis Nov 2, 2026
What an attacker can do
When OpenClaw exports a session to HTML, markdown content in the session is rendered into links. In affected versions the renderer kept unsafe link schemes, javascript: and data:, in the output instead of dropping them. This is cross-site scripting (CWE-79) in a static file. The advisory does not name the module or function.
An attacker needs to get link text into session content, for example through a message, a web page the agent summarized or other lower-trust input that ends up in the transcript. The attack then waits for an operator to export the session, open the HTML and click the link. The vector needs user interaction, and the advisory scores it 6.1.
Script from the link runs in the browser that opened the file, with whatever access that browser profile holds. That is why the advisory warns about privileged browser profiles. The advisory says it does not change OpenClaw's trusted-operator model, and that actual impact depends on whether lower-trust input can reach the export path.
Who is affected
The npm package openclaw at 2026.5.7 and earlier, where the session HTML export feature is used. Check the installed version:
npm ls openclawExports made with an older version stay unsafe after you upgrade, so treat existing exported HTML files from untrusted sessions with care.
openclaw
- Ecosystem
- npm
- Affected
- <= 2026.5.7
- Fixed in
- 2026.5.12
- Check
npm ls openclaw
How to fix it
Upgrade to openclaw 2026.5.12, the first stable patched version.
npm install -g [email protected]Until then, do not open exported session HTML that came from untrusted content in a privileged browser profile. The advisory also suggests narrow channel and tool allowlists, not sharing one Gateway between mutually untrusted users, and disabling the export feature if it is not needed.
How to tell if you were hit
The advisory lists no indicators. Search exported session HTML files for links whose href begins with javascript: or data:, for example with grep -rE 'href="(javascript|data):' exports/. Check session transcripts for markdown links with those schemes. Check whether any operator opened an exported file from an untrusted session in a browser holding sensitive logins.
Original advisory
From the GitHub Advisory Database (CC BY 4.0).
Summary
Exported session HTML could keep unsafe markdown links. In affected versions, content rendered into an exported session could preserve unsafe javascript: or data: links in generated HTML.
This advisory is scoped to the named feature and configuration. It does not change OpenClaw's trusted-operator model: authenticated Gateway operators, installed plugins, and intentional local execution surfaces remain trusted unless a separate policy, approval, allowlist, sandbox, or auth boundary is crossed.
Impact
When the affected feature is enabled and reachable, this could run browser-side script if a trusted operator opens the exported file and activates the link. Practical impact depends on the operator's configuration and whether lower-trust input can reach that path.
Patched Versions
The first stable patched version is 2026.5.12.
Mitigations
do not open exported session HTML from untrusted content in a privileged browser profile until patched. As general hardening, keep channel and tool allowlists narrow, avoid sharing one Gateway between mutually untrusted users, and disable the affected feature when it is not needed.
Credited to YLChen-007.
Questions
- Does CVE-2026-53841 run script automatically when the file opens?
No. The advisory says script runs when a trusted operator opens the exported file and activates the unsafe link. The vector requires user interaction.
- Which OpenClaw version fixes it?
2026.5.12 is the first stable patched version. Versions up to and including 2026.5.7 are affected.
- Are old exports still dangerous after upgrading?
They can be. The fix changes how new exports are generated. Files already written with
javascript:ordata:links keep them, so check or delete old exports from untrusted sessions.- Is it exploited in the wild?
No source read says so, and the entry has no CISA KEV data.
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. The analysis is written by an AI model from the sources listed above and checked by automated rules before it is published. Check versions against the vendor's advisory before you act. Methodology
More OpenClaw vulnerabilities
All OpenClaw entriesCVE-2026-62197
OpenClaw: Browser CDP discovery could accept blocked WebSocket URLs
medium8.5Oct 21, 2026CVE-2026-35630
OpenClaw: QQBot native approval buttons did not enforce configured approver identity
high8.0Jul 2, 2026CVE-2026-53806
OpenClaw: Combined POSIX shell options could confuse exec revalidation
high8.8Jul 2, 2026CVE-2026-53809
OpenClaw: Embedded runner policy could be confused by provider aliases
medium3.8Jul 2, 2026CVE-2026-53810
OpenClaw's marketplace runtime extension metadata could point at unscanned payloads
high8.8Jul 2, 2026CVE-2026-53811
OpenClaw: Matrix allowFrom could bind to mutable display names
high8.8Jul 2, 2026
