{"answers":{"affected":"10 open source packages ship an affected version, including github.com/zitadel/zitadel. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-27840 in the wild and no public exploit code.","fix":"Upgrade github.com/zitadel/zitadel to a fixed version for your release line: 1.80.0-v2.20.0.20260216092519-feab8e1fa371, 3.4.7 or 4.11.0.","what":"CVE-2026-27840 is a medium-severity authentication bypass vulnerability in zitadel, published on 26 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-27840 and fix it if it is affected.\n\nWhat it is: CVE-2026-27840 is a medium-severity authentication bypass vulnerability in zitadel, published on 26 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-27840 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/zitadel/zitadel (Go): affected all versions; no fix listed\n- github.com/zitadel/zitadel (Go): affected all versions; fixed in 1.80.0-v2.20.0.20260216092519-feab8e1fa371\n- github.com/zitadel/zitadel (Go): affected all versions; fixed in 1.80.0-v2.20.0.20260216092519-feab8e1fa371\n- github.com/zitadel/zitadel (Go): affected all versions; fixed in 1.80.0-v2.20.0.20260216092519-feab8e1fa371\n- github.com/zitadel/zitadel (Go): affected from 2.31.0 up to 2.71.19; no fix listed\n- github.com/zitadel/zitadel (Go): affected from 2.31.0 up to 2.71.19; no fix listed\n- github.com/zitadel/zitadel (Go): affected from 3.0.0; fixed in 3.4.7\n- github.com/zitadel/zitadel (Go): affected from 3.0.0; fixed in 3.4.7\n- github.com/zitadel/zitadel (Go): affected from 4.0.0; fixed in 4.11.0\n- github.com/zitadel/zitadel (Go): affected from 4.0.0; fixed in 4.11.0\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-27840/ (Markdown: https://insights.sbomify.com/CVE-2026-27840/index.md)","id":"CVE-2026-27840","markdown":"https://insights.sbomify.com/CVE-2026-27840/index.md","name":"CVE-2026-27840","record":{"aliases":["GHSA-6mq3-xmgp-pjm5","GO-2026-4573"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Identity management platform","requires_auth":"none","summary":"Truncated opaque tokens remain valid in ZITADEL, potentially bypassing user ID verification, though currently considered non-exploitable.","user_interaction":"required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zitadel","vendor":"zitadel"}],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-302","name":"Authentication Bypass by Assumed-Immutable Data"}],"description":"ZITADEL is an open source identity management platform. Starting in version 2.31.0 and prior to versions 3.4.7 and 4.11.0, opaque OIDC access tokens in the v2 format truncated to 80 characters are still considered valid.  Zitadel uses a symmetric AES encryption for opaque tokens. The cleartext payload is a concatenation of a couple of identifiers, such as a token ID and user ID. Internally Zitadel has 2 different versions of token payloads. v1 tokens are no longer created, but are still verified as to not invalidate existing session after upgrade. The cleartext payload has a format of `\u003ctoken_id\u003e:\u003cuser_id\u003e`. v2 tokens distinguished further where the `token_id` is of the format `v2_\u003coidc_session_id\u003e-at_\u003caccess_token_id\u003e`. V1 token authZ/N session data is retrieved from the database using the (simple) `token_id` value and `user_id` value. The `user_id` (called `subject` in some parts of our code) was used as being the trusted user ID. V2 token authZ/N session data is retrieved from the database using the `oidc_session_id` and `access_token_id` and in this case the `user_id` from the token is ignored and taken from the session data in the database. By truncating the token to 80 chars, the user_id is now missing from the cleartext of the v2 token. The back-end still accepts this for above reasons. This issue is not considered exploitable, but may look awkward when reproduced. The patch in versions 4.11.0 and 3.4.7 resolves the issue by verifying the `user_id` from the token against the session data from the database. No known workarounds are available.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"ZITADEL's truncated opaque tokens are still valid","id":"CVE-2026-27840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2026"},"n_packages":10,"n_references":3,"next":{"headline":"SenseLive X3050 Cross-Site request forgery","id":"CVE-2026-27841"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GO-2026-4573"},{"ecosystem":"Go","fixed":["1.80.0-v2.20.0.20260216092519-feab8e1fa371"],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["1.80.0-v2.20.0.20260216092519-feab8e1fa371"],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["1.80.0-v2.20.0.20260216092519-feab8e1fa371"],"introduced":["0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GO-2026-4573"},{"ecosystem":"Go","fixed":[],"introduced":["2.31.0"],"last_affected":["2.71.19"],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":[],"introduced":["2.31.0"],"last_affected":["2.71.19"],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["3.4.7"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["3.4.7"],"introduced":["3.0.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["4.11.0"],"introduced":["4.0.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":null,"source":"GHSA-6mq3-xmgp-pjm5"},{"ecosystem":"Go","fixed":["4.11.0"],"introduced":["4.0.0"],"last_affected":[],"package":"github.com/zitadel/zitadel","purl":"pkg:golang/github.com/zitadel/zitadel","source":"GHSA-6mq3-xmgp-pjm5"}],"prev":{"headline":"wger: IDOR in nutritional_values endpoints exposes private dietary data via direct ORM lookup","id":"CVE-2026-27839"},"products":["zitadel"],"published":"2026-02-26","related":[{"cvss_score":9.3,"headline":"ZITADEL: 1-Click Account Takeover via XSS in /saml-post Endpoint","id":"CVE-2026-29191","kev_date_added":null,"published":"2026-03-07"},{"cvss_score":9.3,"headline":"ZITADEL Vulnerable to Unauthenticated Full-Read SSRF via V2 Login","id":"CVE-2025-67494","kev_date_added":null,"published":"2025-12-09"},{"cvss_score":9,"headline":"IDOR Vulnerabilities in ZITADEL's Admin API that Primarily Impact LDAP Configurations","id":"CVE-2025-27507","kev_date_added":null,"published":"2025-03-04"},{"cvss_score":8.7,"headline":"Zitadel Bypass Second Authentication Factor","id":"CVE-2025-64103","kev_date_added":null,"published":"2025-10-29"},{"cvss_score":8.7,"headline":"Zitadel Expired JWT Keys Usable for Authorization Grants","id":"CVE-2025-31123","kev_date_added":null,"published":"2025-03-31"},{"cvss_score":8.7,"headline":"ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass","id":"CVE-2024-29891","kev_date_added":null,"published":"2024-03-27"},{"cvss_score":8.7,"headline":"XSS with User Avatar image in ZITADEL","id":"CVE-2023-46238","kev_date_added":null,"published":"2023-10-26"}],"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":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-26","vendors":["zitadel"]},"summary":"Truncated opaque tokens remain valid in ZITADEL, potentially bypassing user ID verification, though currently considered non-exploitable.","url":"https://insights.sbomify.com/CVE-2026-27840/"}