{"id":"CVE-2026-91187","aliases":["CVE-2026-91187","EEF-CVE-2026-91187","GHSA-rj24-g8cc-g7g2"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Verification of Cryptographic Signature in dashbit nimble_zta Cloudflare strategy","summary":"Improper Verification of Cryptographic Signature vulnerability in dashbit nimble_zta allows an unauthenticated remote attacker to authenticate as an arbitrary Cloudflare service token. Applications using the Cloudflare Zero Trust authentication strategy are affected.\n\nverify_token/2 in lib/nimble_zta/cloudflare.ex matches the result of JOSE.JWT.verify/2 against {_, token, _s}, which discards the boolean verification result and returns the decoded token after a failed signature check. The attacker sends a forged JWT in the cf-access-jwt-assertion header, carrying the expected iss claim and the seven service token claims. verify_iss/2 reads the iss claim from the forged token, so it rejects nothing, and the service token path then returns those claims as the authenticated identity.\n\nThis issue affects nimble_zta: from 0.1.2 before 0.1.3.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Improper Verification of Cryptographic Signature vulnerability in dashbit nimble_zta allows an unauthenticated remote attacker to authenticate as an arbitrary Cloudflare service token. Applications using the Cloudflare Zero Trust authentication strategy are affected.\n\nverify_token/2 in lib/nimble_zta/cloudflare.ex matches the result of JOSE.JWT.verify/2 against {_, token, _s}, which discards the boolean verification result and returns the decoded token after a failed signature check. The attacker sends a forged JWT in the cf-access-jwt-assertion header, carrying the expected iss claim and the seven service token claims. verify_iss/2 reads the iss claim from the forged token, so it rejects nothing, and the service token path then returns those claims as the authenticated identity.\n\nThis issue affects nimble_zta: from 0.1.2 before 0.1.3.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nImproper Verification of Cryptographic Signature vulnerability in dashbit nimble_zta allows an unauthenticated remote attacker to authenticate as an arbitrary Cloudflare service token. Applications using the Cloudflare Zero Trust authentication strategy are affected.\n\n`verify_token/2` in `lib/nimble_zta/cloudflare.ex` matches the result of `JOSE.JWT.verify/2` against `{_, token, _s}`, which discards the boolean verification result and returns the decoded token after a failed signature check. The attacker sends a forged JWT in the `cf-access-jwt-assertion` header, carrying the expected `iss` claim and the seven service token claims. `verify_iss/2` reads the `iss` claim from the forged token, so it rejects nothing, and the service token path then returns those claims as the authenticated identity.\n\nThis issue affects nimble_zta: from 0.1.2 before 0.1.3.\n\n## Proof of concept\n\n1. Build a JWT payload that carries the `aud`, `common_name`, `exp`, `iat`, `iss`, `sub` and `type` claims. Use the `iss` the application expects, set `exp` to a future timestamp, and set `common_name` to the service token to impersonate.\n2. Append any signature segment. The segment must be present, because `JOSE.JWT.verify/2` needs three segments to parse the token. The signature does not need to verify against the Cloudflare keys.\n3. Send a request to the application with the forged JWT in the `cf-access-jwt-assertion` header.\n4. `NimbleZTA.Cloudflare.authenticate/3` returns the claims of the forged token as the authenticated identity, with the `strategy` field set to `service_token`.\n\n## Impact\n\nThe attacker authenticates as an arbitrary Cloudflare service token without holding the Cloudflare signing key. The application receives the `client_id` and the claims of the forged token as the authenticated identity, so the attacker gets the access that the application grants to that service token.\n\n## Workarounds\n\nDisable the Cloudflare authentication strategy.\n\nTo keep the user identity strategy available, reject the service token requests yourself. Examine each request before you call `NimbleZTA.Cloudflare.authenticate/3`, and reject it if its JWT carries the `common_name` claim and the `type` claim.\n\n## Configurations\n\nThe application must add `NimbleZTA.Cloudflare` to its supervision tree and authenticate requests through it.","format":"markdown","source":"eef"}],"published":"2026-09-24T13:20:52.974Z","modified":"2026-11-26T17:23:14.184Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N","score":9.3,"rating":"CRITICAL"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N","score":9.3,"rating":"CRITICAL"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:H/SA:N"}],"cwes":["CWE-347"],"affected":[{"ranges":[{"type":"semver","introduced":"0.1.2","fixed":"0.1.3","status":"affected"}],"vendor":"dashbit","product":"nimble_zta","package":"nimble_zta","cpe":"cpe:2.3:a:dashbit:nimble_zta:*:*:*:*:*:*:*:*","repo":"https://github.com/dashbitco/nimble_zta","source":"cvelist"},{"ranges":[{"type":"git","introduced":"bc004b70985ae5763901baab3a4e204047899768","fixed":"6458fd18a5ba41166d4973214c519e98fe05b72d","status":"affected"}],"vendor":"dashbit","product":"nimble_zta","package":"dashbitco/nimble_zta","cpe":"cpe:2.3:a:dashbit:nimble_zta:*:*:*:*:*:*:*:*","repo":"https://github.com/dashbitco/nimble_zta","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.2","status":"affected","fixed":"0.1.3"}],"ecosystem":"Hex","package":"nimble_zta","purl":"pkg:hex/nimble_zta","source":"eef"},{"ranges":[{"type":"git","introduced":"bc004b70985ae5763901baab3a4e204047899768","status":"affected","fixed":"6458fd18a5ba41166d4973214c519e98fe05b72d"}],"repo":"https://github.com/dashbitco/nimble_zta","source":"eef"}],"references":[{"url":"https://github.com/dashbitco/nimble_zta/security/advisories/GHSA-rj24-g8cc-g7g2","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-91187.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-91187","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dashbitco/nimble_zta/commit/bc004b70985ae5763901baab3a4e204047899768","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/dashbitco/nimble_zta/commit/6458fd18a5ba41166d4973214c519e98fe05b72d","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/nimble_zta","tags":["package"],"sources":["eef"]}],"credits":["Kazlu","Jonatan Männchen / EEF","José Valim / Dashbit"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-09-24T14:43:06.738Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-91187","url":"https://www.cve.org/CVERecord?id=CVE-2026-91187","licence":"CVE Terms of Use","modified":"2026-11-19T08:25:17.029Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-91187","url":"https://osv.dev/vulnerability/EEF-CVE-2026-91187","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:14.184Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-91187","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-91187","licence":"Public domain","modified":"2026-09-24T19:39:45.600Z"}],"updatedAt":"2026-11-26T17:37:09.922Z","epss":{"score":0.00304,"percentile":0.24924,"date":"2026-12-01T12:00:22.000Z"}}