openclaw
Affected
- introduced
0, fixed2026.2.23(semver)
Fixed versions
2026.2.23
Fix
- Fixed version
2026.2.23npm install [email protected]
Advisory
Also known as: None
OpenClaw has stored XSS in exported session HTML viewer via markdown/raw-HTML rendering
Summary
The exported session HTML viewer allowed stored XSS when untrusted session content included raw HTML markdown tokens or unescaped metadata fields.
Impact
Opening a crafted exported HTML session could execute attacker-controlled JavaScript in the viewer context. This can expose session content in the page and enable phishing or UI spoofing in the trusted export view.
Affected Packages / Versions
openclaw (npm)<= 2026.2.22-2>= 2026.2.23Technical Details
The exporter rendered markdown with marked.parse(...) and inserted HTML via innerHTML, but did not override the html renderer token path. Raw HTML (for example <img ... onerror=...>) was passed through. Additional tree/header metadata fields were interpolated without escaping in the export template.
Reproduction
<img src=x onerror=alert(1)>.Remediation
marked html(token) renderer override that escapes raw HTML tokens.Fix Commit(s)
f8524ec77a3999d573e6c6b8a5055bf35c49a2e6Release Process Note
patched_versions is pre-set to the released version (>= 2026.2.23). This advisory now reflects released fix version 2026.2.23.
OpenClaw thanks @allsmog for reporting.
Medium Basis: The source's own band: MODERATE
0, fixed 2026.2.23 (semver)2026.2.23
2026.2.23npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0