{"answers":{"affected":"2 open source packages ship an affected version, including openclaw.","exploited":"There is no known exploitation of GHSA-r294-2894-92j3 in the wild and no public exploit code.","fix":"Upgrade openclaw to 2026.2.23 or later.","what":"GHSA-r294-2894-92j3 is a cross-site scripting vulnerability in openclaw, published on 3 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-r294-2894-92j3 and fix it if it is affected.\n\nWhat it is: GHSA-r294-2894-92j3 is a cross-site scripting vulnerability in openclaw, published on 3 Mar 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-r294-2894-92j3 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- openclaw (npm): affected all versions; fixed in 2026.2.23\n- openclaw (npm): affected all versions; fixed in 2026.2.23\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/GHSA-r294-2894-92j3/ (Markdown: https://insights.sbomify.com/GHSA-r294-2894-92j3/index.md)","id":"GHSA-r294-2894-92j3","markdown":"https://insights.sbomify.com/GHSA-r294-2894-92j3/index.md","name":"GHSA-r294-2894-92j3","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OpenClaw npm library","requires_auth":"none","summary":"OpenClaw library allows stored XSS via unescaped HTML in exported session files, enabling script execution and data exposure when users open crafted exports.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"## Summary\n\nThe exported session HTML viewer allowed stored XSS when untrusted session content included raw HTML markdown tokens or unescaped metadata fields.\n\n## Impact\n\nOpening 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.\n\n## Affected Packages / Versions\n\n- Package: `openclaw` (npm)\n- Affected versions: `\u003c= 2026.2.22-2`\n- Patched version (released): `\u003e= 2026.2.23`\n\n## Technical Details\n\nThe exporter rendered markdown with `marked.parse(...)` and inserted HTML via `innerHTML`, but did not override the `html` renderer token path. Raw HTML (for example `\u003cimg ... onerror=...\u003e`) was passed through. Additional tree/header metadata fields were interpolated without escaping in the export template.\n\n## Reproduction\n\n1. Create a session containing content like `\u003cimg src=x onerror=alert(1)\u003e`.\n2. Export the session to HTML.\n3. Open the exported file.\n4. Observe script execution from injected content.\n\n## Remediation\n\n- Added a `marked` `html(token)` renderer override that escapes raw HTML tokens.\n- Escaped previously unescaped tree/header metadata fields in the export template.\n- Added image MIME sanitization for exported data-URL image rendering.\n- Added regression tests for markdown/token and metadata escaping paths.\n\n## Fix Commit(s)\n\n- `f8524ec77a3999d573e6c6b8a5055bf35c49a2e6`\n\n## Release Process Note\n\n`patched_versions` is pre-set to the released version (`\u003e= 2026.2.23`). This advisory now reflects released fix version `2026.2.23`.\n\nOpenClaw thanks @allsmog for reporting.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"OpenClaw has stored XSS in exported session HTML viewer via markdown/raw-HTML rendering","id":"GHSA-r294-2894-92j3","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["2026.2.23"],"introduced":["0"],"last_affected":[],"package":"openclaw","purl":null,"source":"GHSA-r294-2894-92j3"},{"ecosystem":"npm","fixed":["2026.2.23"],"introduced":["0"],"last_affected":[],"package":"openclaw","purl":"pkg:npm/openclaw","source":"GHSA-r294-2894-92j3"}],"products":null,"published":"2026-03-03","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"OpenClaw library allows stored XSS via unescaped HTML in exported session files, enabling script execution and data exposure when users open crafted exports.","url":"https://insights.sbomify.com/GHSA-r294-2894-92j3/"}