CVE-2026-55660: TinaCMS: Cross-origin postMessage handlers and rich-text URL-sanitization bypass enable stored XSS and session takeover
TinaCMS registers window message listeners — the useTina overlay handler, the OAuth authentication popup handler, and the admin↔preview iframe GraphQL reducer — that act on event.data without verifying event.origin or event.source, and post messages using non-specific target origins.
Published Jun 19, 2026
Affected packages
tinacms
- Ecosystem
- npm
- Affected
- < 3.9.3
- Fixed in
- 3.9.3
- Check
npm ls tinacms
@tinacms/app
- Ecosystem
- npm
- Affected
- < 2.5.6
- Fixed in
- 2.5.6
- Check
npm ls @tinacms/app
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
TinaCMS registers window message listeners — the useTina overlay handler, the OAuth authentication popup handler, and the admin↔preview iframe GraphQL reducer — that act on event.data without verifying event.origin or event.source, and post messages using non-specific target origins. A page the victim visits (or a window in an opener/iframe relationship with a Tina admin) can forge messages to drive the editor, inject preview content, or observe/forge the OAuth popup channel to take over an authenticated editing session.
Fixed in #7056 by allow-listing trusted origins and verifying event.source (isFromAdmin, isFromTrustedPreviewOrigin), and by posting only to explicit target origins (never "*").
Note: the rich-text URL-sanitization issue previously bundled here has been split into its own advisory (GHSA-2vcc-5v34-9jc8) so each vulnerability can receive a distinct CVE.
Credited to kulesy, sondt99, dungNHVhust.
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. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-108261
TinaCMS admin preview iframe loads an attacker-controlled origin from the URL fragment
critical9.3Oct 9, 2026CVE-2026-55661
TinaCMS rich-text (slatejson) rendering does not sanitize link/image URLs, allowing stored XSS via dangerous URL schemes
medium4.8Jun 18, 2026CVE-2026-28791
Tina: Path Traversal in Media Upload Handle
high7.4Mar 12, 2026CVE-2025-68278
tinacms is vulnerable to arbitrary code execution
high7.3Dec 18, 2025
