Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @tinacms/mdx
  4. ›
  5. CVE-2026-55661

CVE-2026-55661: TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes

June 18, 2026

TinaCMS rich-text parsing and the default link/image renderers did not sanitize the url field on Slate link/image nodes. Content containing javascript: or data:text/html URLs — including case-variant, whitespace-padded, and control-character-obfuscated forms — is rendered into href/src and executes when the content is viewed. Any actor able to author rich-text content (for example a lower-privileged editor, or imported/external content) can achieve stored XSS against editors and site viewers.

Fixed in https://github.com/tinacms/tinacms/pull/7056 via a sanitizeUrl() helper (case-insensitive, whitespace/control-character-normalized scheme allow-list) applied recursively to Slate trees at parse time and in the default rich-text rendering.

References

  • github.com/advisories/GHSA-2vcc-5v34-9jc8
  • github.com/tinacms/tinacms/pull/7056
  • github.com/tinacms/tinacms/security/advisories/GHSA-2vcc-5v34-9jc8
  • nvd.nist.gov/vuln/detail/CVE-2026-55661

Code Behaviors & Features

Detect and mitigate CVE-2026-55661 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 2.1.7

Fixed versions

  • 2.1.7

Solution

Upgrade to version 2.1.7 or above.

Impact 4.6 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/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')
  • CWE-87: Improper Neutralization of Alternate XSS Syntax

Source file

npm/@tinacms/mdx/CVE-2026-55661.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:16:41 +0000.