Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain content-editor account
-
DeliveryPaste anchor with javascript: href into document field
-
ExploitStored unvalidated href rendered by DocumentRenderer
-
ExecutionVisitor clicks malicious link
-
ImpactScript steals keystatic-gh-access-token cookie
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated Keystatic content-editor account (PR:L) with permission to edit document fields, and the attacker must inject an anchor whose href is a javascript: URL into a document rendered by the DocumentRenderer component (renderer.tsx) - the HTML paste path (html.ts) does not strip such hrefs. Exploitation is limited by needing (1) that editor-level authentication, and (2) passive victim interaction (UI:P): a site visitor must actually click the rendered malicious link for the script to fire. It therefore does not work against default configurations without a malicious or compromised editor, and single-author or trusted-editor deployments face materially lower real-world risk. Affects Keystatic through 0.6.9. |
| Impact | This is a moderate-severity, authenticated stored XSS (CWE-79) with signals that point to a real but bounded risk. The provided CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, base 5.1) confirms network reach and low complexity but requires low-level privileges (PR:L - a content editor account) and passive user interaction (UI:P - a visitor must click the rendered malicious link). No EPSS score, no CISA KEV listing, and no confirmed working exploit code are present in the input, so there is no evidence of active or automated exploitation. The vuln.today priority is 'this_month' rather than act_now/emergency, consistent with the picture of a self-service-CMS flaw that needs an insider or a compromised editor account plus victim interaction to land. The scope-change impact (SC:L/SI:L reflecting that the injected script runs in the context of site visitors, stealing the keystatic-gh-access-token cookie) is what keeps this above a trivial self-XSS. Net: a genuine but not emergency priority - it should be patched on a normal cycle, and the main uncertainty is that no EPSS/KEV data is available to gauge in-the-wild interest, and no working PoC is confirmed. |
| Exploit ScenarioDerived | An authenticated content editor pastes an anchor with a javascript: URL into a Keystatic document field; the DocumentRenderer emits the unvalidated href, so when a site visitor clicks the rendered link the attacker's script executes in the visitor's browser and exfiltrates the keystatic-gh-access-token cookie. Exploitation requires a low-privileged editor account and a victim click (UI:P), so it is realistic on multi-author sites but not fully automatable. No confirmed working exploit code is identified in the sources; only the vendor advisory, a GitHub issue, and the vulnerable source lines are referenced. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Stored cross-site scripting in Keystatic through 0.6.9 lets an authenticated content editor plant an anchor whose href is a javascript: URL inside a document field; the DocumentRenderer then emits that href unvalidated, so the script executes when a visitor clicks the rendered link and can read the keystatic-gh-access-token cookie. Exploitation requires an editor-level account (PR:L) plus a victim who actually clicks the link (UI:P), so risk is concentrated in deployments with untrusted, multi-author or compromised editor accounts rather than single-author setups. No CISA KEV entry or confirmed public exploit code is present in the available data, and the issue is tracked upstream with a disclosure-time priority of this_month.
RemediationAI
No vendor-released fixed version is listed in the available data, so confirm patch status against https://github.com/Thinkmill/keystatic/issues/1669 before closing tracking, and treat upgrades past 0.6.9 as unverified until an advisory names a version. Until a fix is confirmed, the most direct control is to sanitize at render time: wrap or replace the DocumentRenderer link output with a URL-scheme allowlist (http, https, mailto and relative paths) so javascript: and data: hrefs never reach the DOM - the trade-off is that legitimate custom protocol handlers and any intentional deep links will also be blocked. Audit existing stored documents for anchors containing javascript: hrefs using a repository-wide search over the content files, since the payload persists in Git-backed content and survives application restarts. Restrict editor accounts to trusted authors and review the number of principals holding document-edit rights, because the flaw is editor-authenticated (PR:L) and only reachable through accounts that can write document fields. Deploy a Content-Security-Policy without 'unsafe-inline' in script-src on the rendering origin to blunt execution of injected handlers; this requires an asset and inline-script audit and does not protect browsers ignoring CSP. Reduce blast radius of the exposed keystatic-gh-access-token cookie by marking it HttpOnly where the Keystatic client does not need script access, with the side effect that any client-side flow reading that cookie will break. Given the this_month priority, schedule these changes within the current maintenance cycle.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keystatic is a Git-backed content management layer (from Thinkmill) that stores content as files in a repository and renders document fields through its own React components. The flaw is CWE-79 (improper neutralization of input during web page generation) and sits at the boundary between two source locations cited in the advisory: the HTML paste handler at packages/keystatic/src/form/fields/document/DocumentEditor/pasting/html.ts (lines 153-161) and the link rendering path in packages/keystatic/src/renderer.tsx (lines 261-266). The paste path transfers anchor hrefs into the document model without stripping javascript: schemes, and the renderer writes the stored href back into markup without a scheme allowlist, so the payload persists in content and fires on click. The assessed vector (CVSS 3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N) reflects a scope change from the CMS surface into the visiting user's browser session: confidentiality and integrity impact is limited to what script running in the site origin can reach, which in this configuration includes the keystatic-gh-access-token cookie used by the GitHub integration. No CPE strings were supplied, and the exact build or branch that introduces the sanitization gap beyond 0.6.9 is not documented in the available sources.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Authenticated editor (PR:L) stores the payload, but a visitor must click the link (UI:R); script runs in the visitor's context (S:C) stealing a cookie, giving C:L/I:L and A:N.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-126425
GHSA-7rhp-25j5-cqxx
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB