{"answers":{"affected":"4 open source packages ship an affected version, including better-auth.","exploited":"There is no known exploitation of CVE-2026-67333 in the wild and no public exploit code.","fix":"Upgrade better-auth to a fixed version for your release line: 1.6.13 or 1.7.0-beta.4.","what":"CVE-2026-67333 is a medium-severity cross-site scripting vulnerability in better-auth, published on 1 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-67333 and fix it if it is affected.\n\nWhat it is: CVE-2026-67333 is a medium-severity cross-site scripting vulnerability in better-auth, published on 1 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-67333 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- better-auth (npm): affected all versions; fixed in 1.6.13\n- better-auth (npm): affected all versions; fixed in 1.6.13\n- better-auth (npm): affected from 1.7.0-beta.0; fixed in 1.7.0-beta.4\n- better-auth (npm): affected from 1.7.0-beta.0; fixed in 1.7.0-beta.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-67333/ (Markdown: https://insights.sbomify.com/CVE-2026-67333/index.md)","id":"CVE-2026-67333","markdown":"https://insights.sbomify.com/CVE-2026-67333/index.md","name":"CVE-2026-67333","record":{"aliases":["GHSA-86j7-9j95-vpqj","GHSA-w277-2xmj-j2rc"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["account_takeover","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Authentication library","requires_auth":"low_privilege","summary":"Stored XSS in better-auth allows attackers to execute JavaScript via malicious OAuth redirect URIs, leading to session theft and account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulnCheck","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","version":"4.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"better-auth before 1.6.13 (and pre-release builds 1.7.0-beta.0 through 1.7.0-beta.3) fail to validate the scheme of redirect_uris registered via the deprecated oidc-provider plugin and the mcp plugin (which wraps the same provider). An attacker can register an OAuth client with a javascript: redirect_uri, which the authorization server later returns unchanged in the consent response. If the deployment's consent page navigates the browser to the returned redirectURI (e.g. assigning it to window.location.href), the attacker's JavaScript executes in the authorization-server origin, exposing the victim's session and enabling account takeover.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"better-auth before 1.6.13 Stored XSS via javascript redirect_uri","id":"CVE-2026-67333","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"better-auth Stale Sessions Persist After User Deletion","id":"CVE-2026-67334"},"packages":[{"ecosystem":"npm","fixed":["1.6.13"],"introduced":["0"],"last_affected":[],"package":"better-auth","purl":null,"source":"GHSA-86j7-9j95-vpqj"},{"ecosystem":"npm","fixed":["1.6.13"],"introduced":["0"],"last_affected":[],"package":"better-auth","purl":"pkg:npm/better-auth","source":"GHSA-86j7-9j95-vpqj"},{"ecosystem":"npm","fixed":["1.7.0-beta.4"],"introduced":["1.7.0-beta.0"],"last_affected":[],"package":"better-auth","purl":null,"source":"GHSA-86j7-9j95-vpqj"},{"ecosystem":"npm","fixed":["1.7.0-beta.4"],"introduced":["1.7.0-beta.0"],"last_affected":[],"package":"better-auth","purl":"pkg:npm/better-auth","source":"GHSA-86j7-9j95-vpqj"}],"prev":{"headline":"@better-auth/oauth-provider before 1.7.0-beta.4 Authorization Bypass","id":"CVE-2026-67332"},"products":["better-auth"],"published":"2026-08-01","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-03","vendors":["better-auth"]},"summary":"Stored XSS in better-auth allows attackers to execute JavaScript via malicious OAuth redirect URIs, leading to session theft and account takeover.","url":"https://insights.sbomify.com/CVE-2026-67333/"}