Keystatic through 0.6.9 Stored XSS via javascript: Link href in DocumentRenderer
- State
- Published
- Severity
- 5.1 Medium
- Published
- Nov 16, 2026
- Updated
- Nov 16, 2026
- Reserved
- Nov 16, 2026
Description
Keystatic through 0.6.9 contains a stored cross-site scripting vulnerability in the DocumentRenderer component that allows authenticated content editors to inject scripts via unvalidated link href values. Editors can paste anchors with javascript: URLs into document fields, executing script when visitors click rendered links and stealing the keystatic-gh-access-token cookie.
| Product | Versions |
|---|---|
| Keystatic Thinkmill | 0.6.9 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | VulnCheck | |
| 3.1 | 5.4 Medium | VulnCheck |
Weaknesses
- CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/Thinkmill/keystatic/issues/1669Issue Tracker
- https://github.com/Thinkmill/keystatic/blob/b65d4a55501dc3b7bb268dc925d8538a8a9f8e95/packages/keystatic/src/renderer.tsx#L261-L266Technical Details
- https://github.com/Thinkmill/keystatic/blob/b65d4a55501dc3b7bb268dc925d8538a8a9f8e95/packages/keystatic/src/form/fields/document/DocumentEditor/pasting/html.ts#L153-L161Technical Details
- VulnCheck Advisory: Keystatic through 0.6.9 Stored XSS via javascript: Link href in DocumentRendererThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.