{"id":"CVE-2026-129945","kind":"vulnerability","aliases":["CVE-2026-129945"],"related":[],"title":"Keystatic: GitHub login callback skips state check, enabling login CSRF","description":"Keystatic through 0.6.9 contains a login cross-site request forgery vulnerability in the githubOauthCallback handler that allows unauthenticated remote attackers to sign victims in with the attacker's GitHub account by omitting state validation. Attackers can induce victims to visit the OAuth callback with an attacker-obtained authorization code, causing victim edits in the admin UI to be committed under the attacker's GitHub identity.","summary":"Keystatic through 0.6.9 does not validate the OAuth state parameter in its githubOauthCallback handler. An attacker can make a victim's browser complete a GitHub login with the attacker's account, so the victim's admin-UI edits get committed under the attacker's identity.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["cms","github-oauth","keystatic","next.js","package"],"not_affected_if":["fixed-version","no-github-login"],"how_to_check":"- Check the installed Keystatic version in `package.json` or `node_modules/@keystatic/core/package.json`\n- Confirm whether the site uses GitHub mode for Keystatic login (the `githubOauthCallback` route)","fix":null,"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:59+00:00","updated_at":"2026-11-16T15:40:59+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-16T15:40:59Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"internet","title":"Keystatic: GitHub login callback skips state check, enabling login CSRF","impact":"medium","summary":"Keystatic through 0.6.9 does not validate the OAuth state parameter in its githubOauthCallback handler. An attacker can make a victim's browser complete a GitHub login with the attacker's account, so the victim's admin-UI edits get committed under the attacker's identity.","audience":"developers","category":"package","nicknames":[],"who_cares":["keystatic","next.js","github-oauth","cms"],"confidence":0.6,"fix_status":"unknown","needs_auth":"no","worst_case":"Victim edits are committed under an attacker's GitHub identity","analyst_note":"Find the fixed Keystatic version and the vendor advisory (VulnCheck link lists only the CVE) to confirm the affected range and fix.","how_to_check":"- Check the installed Keystatic version in `package.json` or `node_modules/@keystatic/core/package.json`\n- Confirm whether the site uses GitHub mode for Keystatic login (the `githubOauthCallback` route)","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-github-login","fixed-version"],"who_is_affected":"Sites that run Keystatic through 0.6.9 with GitHub login enabled for the admin UI. The flaw sits in the OAuth callback, so sites without GitHub login or running a later version are not affected. The sources do not give a fixed version.","user_interaction":"yes","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"unknown"},"cost_usd":0.000741,"input_tokens":4623,"output_tokens":558,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-129945':13A,16A '-2026':12A,15A '0.6.9':26B,72C 'account':54B,100C 'admin':60B,126C 'admin-ui':59B 'allow':87C 'attack':39B,52B,67B,90C,97C,105C,117C,133C 'attacker-obtain':116C 'author':119C 'browser':45B 'callback':4A,113C 'caus':121C 'check':7A 'cms':17B 'code':120C 'commit':64B,130C 'complet':46B 'contain':73C 'cross':77C 'cross-sit':76C 'csrf':10A 'cve':11A,14A 'edit':62B,123C 'enabl':8A 'forgeri':80C 'get':63B 'github':2A,19B,48B,99C,135C 'github-oauth':18B 'githuboauthcallback':36B,84C 'handler':37B,85C 'ident':69B,136C 'induc':107C 'keystat':1A,21B,24B,70C 'login':3A,9A,49B,75C 'make':41B 'next.js':22B 'oauth':20B,31B,112C 'obtain':118C 'omit':102C 'packag':23B 'paramet':33B 'remot':89C 'request':79C 'sign':92C 'site':78C 'skip':5A 'state':6A,32B,103C 'ui':61B,127C 'unauthent':88C 'valid':29B,104C 'victim':43B,57B,93C,108C,122C 'visit':110C 'vulner':81C","nicknames":[],"mitigations":[],"who_affected":"Sites that run Keystatic through 0.6.9 with GitHub login enabled for the admin UI. The flaw sits in the OAuth callback, so sites without GitHub login or running a later version are not affected. The sources do not give a fixed version.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["cms","githuboauth","keystatic","medium","nextjs","package"],"campaign_type":null,"search_a":"'-129945':13A,16A '-2026':12A,15A 'callback':4A 'check':7A 'csrf':10A 'cve':11A,14A 'enabl':8A 'github':2A 'keystat':1A 'login':3A,9A 'skip':5A 'state':6A","search_b":"'0.6.9':26B 'account':54B 'admin':60B 'admin-ui':59B 'attack':39B,52B,67B 'browser':45B 'cms':17B 'commit':64B 'complet':46B 'edit':62B 'get':63B 'github':19B,48B 'github-oauth':18B 'githuboauthcallback':36B 'handler':37B 'ident':69B 'keystat':21B,24B 'login':49B 'make':41B 'next.js':22B 'oauth':20B,31B 'packag':23B 'paramet':33B 'state':32B 'ui':61B 'valid':29B 'victim':43B,57B","search_c":"'0.6.9':72C 'account':100C 'admin':126C 'allow':87C 'attack':90C,97C,105C,117C,133C 'attacker-obtain':116C 'author':119C 'callback':113C 'caus':121C 'code':120C 'commit':130C 'contain':73C 'cross':77C 'cross-sit':76C 'edit':123C 'forgeri':80C 'github':99C,135C 'githuboauthcallback':84C 'handler':85C 'ident':136C 'induc':107C 'keystat':70C 'login':75C 'oauth':112C 'obtain':118C 'omit':102C 'remot':89C 'request':79C 'sign':92C 'site':78C 'state':103C 'ui':127C 'unauthent':88C 'valid':104C 'victim':93C,108C,122C 'visit':110C 'vulner':81C","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:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/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-129945","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129945","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":170628,"url":"https://www.vulncheck.com/advisories/keystatic-through-0.6.9-github-oauth-login-csrf-via-missing-state-validation","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"}