Skip to main content
Vulnerability Database/CVE-2026-91187

CVE-2026-91187: Nimble ZTA Auth Bypass Vulnerability

CVE-2026-91187 is an authentication bypass flaw in dashbit nimble_zta that allows attackers to authenticate as arbitrary Cloudflare service tokens. This post explains its technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-91187 Overview

CVE-2026-91187 is an improper verification of cryptographic signature vulnerability [CWE-347] in the dashbit nimble_zta Elixir library. The flaw affects applications using the Cloudflare Zero Trust authentication strategy. An unauthenticated remote attacker can authenticate as an arbitrary Cloudflare service token by submitting a forged JSON Web Token (JWT).

The root cause sits in verify_token/2 in lib/nimble_zta/cloudflare.ex, which pattern-matches the result of JOSE.JWT.verify/2 without checking the boolean verification outcome. The decoded token is returned even when the signature check fails. Versions from 0.1.2 before 0.1.3 are affected.

Critical Impact

Attackers can bypass authentication entirely and impersonate any Cloudflare service token, gaining machine-to-machine access to protected applications without any valid credentials.

Affected Products

  • dashbit nimble_zta versions 0.1.2 through 0.1.2.x
  • Elixir applications using the Cloudflare Zero Trust authentication strategy
  • Downstream services relying on nimble_zta for cf-access-jwt-assertion validation

Discovery Timeline

  • 2026-09-24 - CVE-2026-91187 published to NVD
  • 2026-09-24 - Last updated in NVD database

Technical Details for CVE-2026-91187

Vulnerability Analysis

The nimble_zta library validates Cloudflare Zero Trust JWTs presented in the cf-access-jwt-assertion HTTP header. The validation function verify_token/2 in lib/nimble_zta/cloudflare.ex iterates over the known public keys and calls JOSE.JWT.verify/2. The returned tuple carries three elements: a boolean indicating whether the signature is valid, the decoded token, and the signing descriptor.

The vulnerable implementation pattern-matched the tuple as {_, token, _s}, discarding the boolean. The function then returned {:ok, token} regardless of whether the cryptographic signature verified. Downstream code treated the attacker-controlled claims as authenticated identity.

The attacker then benefits from the service token code path. The seven service token claims plus the expected iss claim are read directly from the forged JWT. verify_iss/2 reads iss from the same forged body, so it validates nothing.

Root Cause

The root cause is incorrect handling of the JOSE.JWT.verify/2 return value. The library trusted the decoded payload without enforcing that the signature verification boolean was true. This is a classic [CWE-347] Improper Verification of Cryptographic Signature pattern.

Attack Vector

The attack requires no authentication, no user interaction, and is executed over the network. An attacker crafts a JWT containing the expected iss claim and the seven Cloudflare service token claims, signs it with any key (or uses an unsigned token), and sends it in the cf-access-jwt-assertion header. The application then returns those forged claims as the authenticated identity.

text
   defp verify_token(token, keys) do
     Enum.find_value(keys, :error, fn key ->
       case JOSE.JWT.verify(key, token) do
-        {_, token, _s} -> {:ok, token}
+        {true, token, _s} -> {:ok, token}
         _ -> nil
       end
     end)

Source: GitHub commit 6458fd18

The one-character fix adds the true literal to the pattern, requiring the signature verification result to be truthful before returning the decoded token.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-91187

Indicators of Compromise

  • Inbound HTTP requests containing a cf-access-jwt-assertion header where the JWT signature does not match any known Cloudflare Access public key for the tenant.
  • Authentication events attributing access to a client_id service token that was not issued by the organization's Cloudflare Zero Trust tenant.
  • Successful logins from source IP addresses that bypass the Cloudflare edge, indicating direct origin access with forged assertions.

Detection Strategies

  • Audit application logs for authentication paths that resolve to the service token strategy and correlate against the authoritative list of provisioned service tokens.
  • Compare the kid header in received JWTs against the current Cloudflare Access JWKS endpoint for the tenant and alert on mismatches.
  • Instrument verify_token/2 call sites to log the boolean signature result and alert when a decoded token is accepted despite a false verification outcome.

Monitoring Recommendations

  • Centralize web server and application logs capturing the cf-access-jwt-assertion header value for forensic replay.
  • Enforce network-level ingress controls so origin servers only accept traffic routed through Cloudflare, reducing the ability to deliver forged assertions directly.
  • Alert on sudden appearance of new client_id values in authentication telemetry that do not match provisioned service tokens.

How to Mitigate CVE-2026-91187

Immediate Actions Required

  • Upgrade nimble_zta to version 0.1.3 or later across all affected Elixir applications.
  • Rotate any Cloudflare service tokens that may have been exposed while the vulnerable version was deployed in production.
  • Restrict origin ingress so that only requests arriving through the Cloudflare Zero Trust edge can reach protected applications.

Patch Information

The fix is delivered in nimble_zta0.1.3. The primary patch, GitHub commit 6458fd18, corrects the pattern match in verify_token/2 to require a true signature verification result. Additional context on the service token authentication strategy is in GitHub commit bc004b70. Full advisory details are published in GitHub Security Advisory GHSA-rj24-g8cc-g7g2 and OSV EEF-CVE-2026-91187.

Workarounds

  • If immediate upgrade is not possible, disable the Cloudflare Zero Trust authentication strategy in nimble_zta and fall back to an alternative strategy.
  • Enforce mutual TLS (mTLS) between Cloudflare and origin so that forged assertions cannot be delivered through the edge path.
  • Apply the one-line pattern fix locally by requiring {true, token, _s} in verify_token/2 until the upstream version can be deployed.
bash
# Update mix.exs dependency and fetch the fixed release
# {:nimble_zta, "~> 0.1.3"}
mix deps.update nimble_zta
mix deps.get
mix compile --force

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.