Tinacms
@tinacms/web-components: `tina-markdown` writes rich-text link URLs into `href` without scheme validation, allowing stored XSS
Tina is a headless content management system. Prior to 0.2.1, the tina-markdown element in packages/@tinacms/web-components/src/tina-markdown.js assigns a rich-text node.url value directly to an anchor href without validating the URL scheme. A content author can store a link using a script-capable scheme, and a visitor who clicks the rendered link executes attacker-controlled script in the site's origin. The script can access same-origin application data and, when the visitor is an editor or administrator, may expose credentials stored by the TinaCMS admin on that origin. This issue is fixed in version 0.2.1.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 3.14.0
Fixed in 3.14.0
- < 0.2.1
Fixed in 0.2.1
Mitigation
Upgrade tinacms to 3.14.0 or later.
Upgrade web-components to 0.2.1 or later.
References
- Vendor advisory github.com/tinacms/tinacms/security/advisories…
- Patch github.com/tinacms/tinacms/pull/7523
- Patch github.com/tinacms/tinacms/commit/5295e077f0d2…
1 more
- Release notes github.com/tinacms/tinacms/releases/tag/@tinac…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.