Skip to main content

Keystatic CVE-2026-129946

| EUVDEUVD-2026-126425 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-16 disclosure@vulncheck.com GHSA-7rhp-25j5-cqxx
5.1
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain content-editor account
  2. Delivery
    Paste anchor with javascript: href into document field
  3. Exploit
    Stored unvalidated href rendered by DocumentRenderer
  4. Execution
    Visitor clicks malicious link
  5. Impact
    Script 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Keystatic 0 ≤0.6.9

Affected Packages

euvd keystatic no fix

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

Vendor (vulncheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.2%
Top 88% exploitable
Prevalence
Low
niche open-source headless CMS (Thinkmill Keystatic), limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy