{"id":"CVE-2026-129946","kind":"vulnerability","aliases":["CVE-2026-129946"],"related":[],"title":"Keystatic: stored XSS in DocumentRenderer lets editors run script","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.","summary":"Keystatic through 0.6.9 renders unvalidated link href values in the DocumentRenderer component, so a javascript: URL pasted into a document field runs script when a visitor clicks it. An authenticated content editor can use this to steal the keystatic-gh-access-token cookie.","severity":"medium","cvss":5.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["javascript","keystatic","package","self-hosted"],"not_affected_if":["no-keystatic","static-content-no-editors"],"how_to_check":"- Check the installed Keystatic version with `npm ls @keystatic/core` and compare it to the fixed release.\n- Look for document fields rendered with DocumentRenderer that accept editor-authored links.","fix":"- Keystatic through `0.6.9` is affected; the sources do not name a fixed version.","status":"open","published_at":"2026-11-16T15:17:29+00:00","first_seen_at":"2026-11-16T15:37:56+00:00","triaged_at":"2026-11-16T15:40:57+00:00","updated_at":"2026-11-16T15:40:57+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:40:57Z","model":"claude-haiku-5-5","output":{"fix":"- Keystatic through `0.6.9` is affected; the sources do not name a fixed version.","reach":"internet","title":"Keystatic: stored XSS in DocumentRenderer lets editors run script","impact":"medium","summary":"Keystatic through 0.6.9 renders unvalidated link href values in the DocumentRenderer component, so a javascript: URL pasted into a document field runs script when a visitor clicks it. An authenticated content editor can use this to steal the keystatic-gh-access-token cookie.","audience":"developers","category":"package","nicknames":[],"who_cares":["keystatic","javascript","self-hosted"],"confidence":0.6,"fix_status":"unknown","needs_auth":"yes","worst_case":"visitor session cookies stolen via injected script in links","analyst_note":"Confirm the fixed Keystatic version and whether @keystatic/core is the affected package, using the NVD entry and the vulncheck advisory.","how_to_check":"- Check the installed Keystatic version with `npm ls @keystatic/core` and compare it to the fixed release.\n- Look for document fields rendered with DocumentRenderer that accept editor-authored links.\n- unknown for a further check the sources do not give.","plain_action":"","product_name":"@keystatic/core","needs_analyst":true,"not_affected_if":["no-keystatic","static-content-no-editors"],"who_is_affected":"Sites that use Keystatic as a content editor and render its document fields with DocumentRenderer are exposed when editors can enter links. Sites that do not use Keystatic, or that only let trusted staff edit content, carry less risk. The sources do not say whether a fixed version exists.","user_interaction":"yes","product_ecosystem":"npm","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000774,"input_tokens":4601,"output_tokens":628,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129946':12A,15A '-2026':11A,14A '0.6.9':24B,68C 'access':63B,117C 'allow':82C 'anchor':97C 'authent':51B,83C 'click':48B,108C 'compon':33B,80C 'contain':69C 'content':52B,84C 'cooki':65B,119C 'cross':73C 'cross-sit':72C 'cve':10A,13A 'document':41B,102C 'documentrender':5A,32B,79C 'editor':7A,53B,85C,94C 'execut':104C 'field':42B,103C 'gh':62B,116C 'host':21B 'href':28B,92C 'inject':87C 'javascript':16B,36B,99C 'keystat':1A,17B,22B,61B,66C,115C 'keystatic-gh-access-token':60B,114C 'let':6A 'link':27B,91C,110C 'packag':18B 'past':38B,96C 'render':25B,109C 'run':8A,43B 'script':9A,44B,75C,88C,105C 'self':20B 'self-host':19B 'site':74C 'steal':58B,112C 'store':2A,71C 'token':64B,118C 'unvalid':26B,90C 'url':37B,100C 'use':55B 'valu':29B,93C 'via':89C 'visitor':47B,107C 'vulner':76C 'xss':3A","nicknames":[],"mitigations":[],"who_affected":"Sites that use Keystatic as a content editor and render its document fields with DocumentRenderer are exposed when editors can enter links. Sites that do not use Keystatic, or that only let trusted staff edit content, carry less risk. The sources do not say whether a fixed version exists.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"unknown","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["javascript","keystatic","medium","package","selfhosted"],"campaign_type":null,"search_a":"'-129946':12A,15A '-2026':11A,14A 'cve':10A,13A 'documentrender':5A 'editor':7A 'keystat':1A 'let':6A 'run':8A 'script':9A 'store':2A 'xss':3A","search_b":"'0.6.9':24B 'access':63B 'authent':51B 'click':48B 'compon':33B 'content':52B 'cooki':65B 'document':41B 'documentrender':32B 'editor':53B 'field':42B 'gh':62B 'host':21B 'href':28B 'javascript':16B,36B 'keystat':17B,22B,61B 'keystatic-gh-access-token':60B 'link':27B 'packag':18B 'past':38B 'render':25B 'run':43B 'script':44B 'self':20B 'self-host':19B 'steal':58B 'token':64B 'unvalid':26B 'url':37B 'use':55B 'valu':29B 'visitor':47B","search_c":"'0.6.9':68C 'access':117C 'allow':82C 'anchor':97C 'authent':83C 'click':108C 'compon':80C 'contain':69C 'content':84C 'cooki':119C 'cross':73C 'cross-sit':72C 'document':102C 'documentrender':79C 'editor':85C,94C 'execut':104C 'field':103C 'gh':116C 'href':92C 'inject':87C 'javascript':99C 'keystat':66C,115C 'keystatic-gh-access-token':114C 'link':91C,110C 'past':96C 'render':109C 'script':75C,88C,105C 'site':74C 'steal':112C 'store':71C 'token':118C 'unvalid':90C 'url':100C 'valu':93C 'via':89C 'visitor':107C 'vulner':76C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:29+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129946","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129946","severity":null,"published_at":"2026-11-16T15:17:29+00:00","modified_at":"2026-11-16T15:17:29+00:00","first_seen_at":"2026-11-16T15:37:56+00:00","fetched_at":"2026-11-16T15:37:56+00:00","note":null}],"documents":[{"id":170629,"url":"https://www.vulncheck.com/advisories/keystatic-through-0.6.9-stored-xss-via-javascript-link-href-in-documentrenderer","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}