Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. openclaw
  4. ›
  5. GHSA-2ww6-868g-2c56

GHSA-2ww6-868g-2c56: OpenClaw Vulnerable to HTML injection via unvalidated image MIME type in data-URL interpolation

March 3, 2026

The HTML session exporter (src/auto-reply/reply/export-html/template.js) interpolates img.mimeType directly into <img src="data:..."> attributes without validation or escaping. A crafted mimeType value (e.g., x" onerror="alert(1)) can break out of the attribute context and execute arbitrary JavaScript.

References

  • github.com/advisories/GHSA-2ww6-868g-2c56
  • github.com/openclaw/openclaw
  • github.com/openclaw/openclaw/commit/f3adf142c195000cbde31200626a1d8c8b716df9
  • github.com/openclaw/openclaw/pull/24140
  • github.com/openclaw/openclaw/security/advisories/GHSA-2ww6-868g-2c56

Code Behaviors & Features

Detect and mitigate GHSA-2ww6-868g-2c56 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2026.2.23

Fixed versions

  • 2026.2.23

Solution

Upgrade to version 2026.2.23 or above.

Impact 5.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/openclaw/GHSA-2ww6-868g-2c56.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:59 +0000.