{"id":"CVE-2025-61920","aliases":["DEBIAN-CVE-2025-61920","GHSA-pq5p-34cr-23v9","PYSEC-2026-1203","SUSE-SU-2025:3754-1","UBUNTU-CVE-2025-61920","openSUSE-SU-2025:15629-1"],"summary":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","published_at":"2025-10-10T19:25:07.679Z","modified_at":"2026-10-23T17:47:39.538053Z","products":[],"rating":{"severity":"high","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"important"},{"source":"SUSE","rating":"important"},{"source":"SUSE","rating":"moderate"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.006380000151693821,"percentile":0.513979971408844,"date":"2026-11-19T00:00:00Z"},"priority":9.5,"details":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.","affected_stack":[],"affected_other":[{"ecosystem":"CVE","package":"authlib/authlib","versions":["< 1.6.5"],"provider":"cvelistv5","source":"CVE-2025-61920","relation":"self"},{"ecosystem":"Debian:11","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=bullseye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.4-1+deb11u1"}]}],"versions":["0.15.4-1"],"fixed":["0.15.4-1+deb11u1"],"provider":"osv","source":"DLA-4352-1","relation":"upstream"},{"ecosystem":"Debian:12","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1+deb12u1"}]}],"versions":["1.2.0-1"],"fixed":["1.2.0-1+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"},{"ecosystem":"Debian:13","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0-1+deb13u1"}]}],"versions":["1.6.0-1"],"fixed":["1.6.0-1+deb13u1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"},{"ecosystem":"Debian:14","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5-1"}]}],"versions":["1.6.0-1","1.6.1-1","1.6.3-1","1.6.4-1"],"fixed":["1.6.5-1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"},{"ecosystem":"NVD","package":"authlib:authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"fixed":["1.6.5"],"provider":"nvd","source":"CVE-2025-61920","relation":"self"},{"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"versions":["0.1","0.10","0.11","0.12","0.12.1","0.13","0.14","0.14.1","0.14.2","0.14.3","0.15","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.1rc0","0.2","0.2.1","0.3","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.8","0.9","1.0.0","1.0.0a1","1.0.0a2","1.0.0b1","1.0.0b2","1.0.0rc1","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4"],"fixed":["1.6.5"],"provider":"osv","source":"GHSA-pq5p-34cr-23v9","relation":"self"},{"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"versions":["0.1","0.10","0.11","0.12","0.12.1","0.13","0.14","0.14.1","0.14.2","0.14.3","0.15","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.1rc0","0.2","0.2.1","0.3","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.8","0.9","1.0.0","1.0.0a1","1.0.0a2","1.0.0b1","1.0.0b2","1.0.0rc1","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4"],"fixed":["1.6.5"],"provider":"osv","source":"PYSEC-2026-1203","relation":"self"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP7","package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.1-1","1.5.2-1","1.6.0-1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.5-1ubuntu0.1~esm1"}]}],"versions":["0.15.4-1","0.15.5-1"],"fixed":["0.15.5-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib@0.15.5-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.5-1ubuntu0.1~esm1"}]}],"versions":["0.15.4-1","0.15.5-1"],"fixed":["0.15.5-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-8065-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-1ubuntu0.1~esm1"}]}],"versions":["1.2.1-1","1.3.0-1"],"fixed":["1.3.0-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib@1.3.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-1ubuntu0.1~esm1"}]}],"versions":["1.2.1-1","1.3.0-1"],"fixed":["1.3.0-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-8065-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-1","1.6.5-1","1.6.6-1","1.6.7-1","1.6.7-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"openSUSE:Leap 15.6","package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Leap%2015.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"},{"ecosystem":"openSUSE:Tumbleweed","package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5-1.1"}]}],"fixed":["1.6.5-1.1"],"provider":"osv","source":"openSUSE-SU-2025:15629-1","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP6","cpe":"cpe:/o:suse:sled:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP6","cpe":"cpe:/o:suse:sle-module-python3:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python311-Authlib","python312-Authlib","python313-Authlib"],"package_count":3,"fixed":["python311-Authlib-1.6.5-1.1","python312-Authlib-1.6.5-1.1","python313-Authlib-1.6.5-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"Open Enterprise Server 25.4","cpe":"cpe:/o:novell,inc:OES:25.4","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP6","cpe":"cpe:/o:suse:sled:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP6","cpe":"cpe:/o:suse:sle-module-python3:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.6.5-1.1"],"advisories":[],"provider":"csaf-suse","source":"openSUSE-SU-2025:15629-1"},{"vendor":"Red Hat","product":"Red Hat Quay 3.10","cpe":"cpe:/a:redhat:quay:3.10::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:22182","RHSA-2025:23064"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.10","cpe":"cpe:/a:redhat:quay:3.10::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.12","cpe":"cpe:/a:redhat:quay:3.12::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:23028"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.12","cpe":"cpe:/a:redhat:quay:3.12::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.13","cpe":"cpe:/a:redhat:quay:3.13::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:23176"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.13","cpe":"cpe:/a:redhat:quay:3.13::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.14","cpe":"cpe:/a:redhat:quay:3.14::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:4215"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.14","cpe":"cpe:/a:redhat:quay:3.14::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.9","cpe":"cpe:/a:redhat:quay:3.9::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:22287","RHSA-2025:23061"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.9","cpe":"cpe:/a:redhat:quay:3.9::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"}],"records":[{"provider":"osv","source_id":"DLA-4352-1","relation":"upstream","url":"https://osv.dev/vulnerability/DLA-4352-1","published_at":"2025-10-29T00:00:00Z","modified_at":"2026-11-20T01:19:01.494804Z","summary":"python-authlib - security update","severity":[],"affected":[{"ecosystem":"Debian:11","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=bullseye","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.4-1+deb11u1"}]}],"versions":["0.15.4-1"],"fixed":["0.15.4-1+deb11u1"],"provider":"osv","source":"DLA-4352-1","relation":"upstream"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"USN-8065-1","relation":"upstream","url":"https://osv.dev/vulnerability/USN-8065-1","license":"CC-BY-SA-4.0","published_at":"2026-02-25T20:43:00Z","modified_at":"2026-04-27T18:41:08.675153Z","summary":"python-authlib vulnerabilities","details":"Millie Solem discovered that Authlib did not properly restrict algorithm\nselection during JWT verification, allowing HMAC verification with\nasymmetric public keys when no algorithm was specified. A remote attacker\ncould possibly use this issue to bypass signature verification and forge\ntokens, resulting in authentication bypass or privilege escalation.\n(CVE-2024-37568)\n\nMuhammad Noman Ilyas discovered that Authlib did not properly enforce\ncritical header parameter handling during JSON Web Signature verification,\nleading to unknown critical parameters being incorrectly accepted. A remote\nattacker could possibly use this issue to bypass security policies in mixed\ndeployments, resulting in authentication bypass, replay attacks, or\nprivilege escalation. (CVE-2025-59420)\n\nMuhammad Noman Ilyas discovered that Authlib did not properly limit the\nsize of JSON Web Signature or JSON Web Token header and signature segments.\nA remote attacker could possibly use this issue to cause excessive memory\nor processor consumption, leading to a denial of service. (CVE-2025-61920)\n\nMuhammad Noman Ilyas discovered that Authlib performed unbounded\ndecompression when processing certain compressed encrypted tokens. A remote\nattacker could possibly use this issue to send a specially crafted token\nthat can be expanded to a large size during decompression, causing a denial\nof service. (CVE-2025-62706)\n\nIt was discovered that Authlib did not properly bind cached state\ninformation to the initiating user session during OAuth authentication\nflows. A remote attacker could possibly use this issue to perform cross-\nsite request forgery attacks, resulting in unauthorized actions or\nauthentication bypass. This issue only affected Ubuntu 24.04 LTS.\n(CVE-2025-68158)","severity":[],"affected":[{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib@0.15.5-1ubuntu0.1~esm1?arch=source&distro=esm-apps/jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.5-1ubuntu0.1~esm1"}]}],"versions":["0.15.4-1","0.15.5-1"],"fixed":["0.15.5-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-8065-1","relation":"upstream"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib@1.3.0-1ubuntu0.1~esm1?arch=source&distro=esm-apps/noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-1ubuntu0.1~esm1"}]}],"versions":["1.2.1-1","1.3.0-1"],"fixed":["1.3.0-1ubuntu0.1~esm1"],"provider":"osv","source":"USN-8065-1","relation":"upstream"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8065-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-37568"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-59420"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61920"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-62706"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-68158"}]},{"provider":"cvelistv5","source_id":"CVE-2025-61920","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2025-61920","license":"CC-BY-4.0","published_at":"2025-10-10T19:25:07.679Z","modified_at":"2025-11-03T17:45:23.708Z","summary":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","details":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2025-61920"}],"affected":[{"ecosystem":"CVE","package":"authlib/authlib","versions":["< 1.6.5"],"provider":"cvelistv5","source":"CVE-2025-61920","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"},{"type":"WEB","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"}]},{"provider":"csaf-suse","source_id":"CVE-2025-61920","relation":"self","url":"https://www.suse.com/security/cve/CVE-2025-61920/","license":"TLP:CLEAR, mirroring permitted","published_at":"2025-10-13T23:23:13Z","modified_at":"2025-11-20T00:23:17Z","summary":"SUSE CVE CVE-2025-61920","details":"SUSE CVE-2025-61920\n\nAuthlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib's JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url-encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2025-61920"},{"type":"SUSE","score":"important","source":"CVE-2025-61920"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP6","cpe":"cpe:/o:suse:sled:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP6","cpe":"cpe:/o:suse:sle-module-python3:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python311-Authlib"],"package_count":1,"fixed":["python311-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"},{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python311-Authlib","python312-Authlib","python313-Authlib"],"package_count":3,"fixed":["python311-Authlib-1.6.5-1.1","python312-Authlib-1.6.5-1.1","python313-Authlib-1.6.5-1.1"],"advisories":[],"provider":"csaf-suse","source":"CVE-2025-61920"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1251921"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2025-October/022984.html"}]},{"provider":"csaf-suse","source_id":"SUSE-SU-2025:3754-1","relation":"self","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20253754-1/","license":"TLP:CLEAR, mirroring permitted","published_at":"2025-10-23T10:27:00Z","modified_at":"2025-10-23T10:27:00Z","summary":"Security update for python-Authlib","details":"Security update for python-Authlib\n\nThis update for python-Authlib fixes the following issues:\n\n- CVE-2025-61920: limited the size of the header to prevent DoS (bsc#1251921).","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"SUSE-SU-2025:3754-1"},{"type":"SUSE","score":"important","source":"SUSE-SU-2025:3754-1"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"Open Enterprise Server 25.4","cpe":"cpe:/o:novell,inc:OES:25.4","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP6","cpe":"cpe:/o:suse:sled:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP6","cpe":"cpe:/o:suse:sle-module-python3:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.3.1-150600.3.6.1"],"advisories":[],"provider":"csaf-suse","source":"SUSE-SU-2025:3754-1"}],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2025/suse-su-2025_3754-1.json"},{"type":"WEB","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20253754-1/"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2025-October/022984.html"},{"type":"WEB","url":"https://bugzilla.suse.com/1251921"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"}]},{"provider":"csaf-suse","source_id":"openSUSE-SU-2025:15629-1","relation":"self","url":"https://www.suse.com/security/cve/CVE-2025-61920/","license":"TLP:CLEAR, mirroring permitted","published_at":"2025-10-13T00:00:00Z","modified_at":"2025-10-13T00:00:00Z","summary":"python311-Authlib-1.6.5-1.1 on GA media","details":"python311-Authlib-1.6.5-1.1 on GA media\n\nThese are all security issues fixed in the python311-Authlib-1.6.5-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"openSUSE-SU-2025:15629-1"},{"type":"SUSE","score":"moderate","source":"openSUSE-SU-2025:15629-1"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"openSUSE Tumbleweed","cpe":"cpe:/o:opensuse:tumbleweed","status":"fixed","packages":["python-Authlib"],"package_count":1,"fixed":["python-Authlib-1.6.5-1.1"],"advisories":[],"provider":"csaf-suse","source":"openSUSE-SU-2025:15629-1"}],"references":[{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2025/opensuse-su-2025_15629-1.json"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"},{"type":"WEB","url":"https://bugzilla.suse.com/1251921"}]},{"provider":"nvd","source_id":"CVE-2025-61920","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920","severity":[],"affected":[{"ecosystem":"NVD","package":"authlib:authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"fixed":["1.6.5"],"provider":"nvd","source":"CVE-2025-61920","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"DEBIAN-CVE-2025-61920","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-61920","published_at":"2025-10-10T20:15:37.893Z","modified_at":"2026-10-23T17:47:39.538053Z","details":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"DEBIAN-CVE-2025-61920"}],"affected":[{"ecosystem":"Debian:12","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.0-1+deb12u1"}]}],"versions":["1.2.0-1"],"fixed":["1.2.0-1+deb12u1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"},{"ecosystem":"Debian:13","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.0-1+deb13u1"}]}],"versions":["1.6.0-1"],"fixed":["1.6.0-1+deb13u1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"},{"ecosystem":"Debian:14","package":"python-authlib","purl":"pkg:deb/debian/python-authlib?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5-1"}]}],"versions":["1.6.0-1","1.6.1-1","1.6.3-1","1.6.4-1"],"fixed":["1.6.5-1"],"provider":"osv","source":"DEBIAN-CVE-2025-61920","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-61920"}]},{"provider":"osv","source_id":"GHSA-pq5p-34cr-23v9","relation":"self","url":"https://osv.dev/vulnerability/GHSA-pq5p-34cr-23v9","license":"CC-BY-4.0","published_at":"2025-10-10T20:26:43Z","modified_at":"2026-09-10T03:50:30.22343Z","summary":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","details":"**Summary**\nAuthlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service.\n\n**Impact**\n\n- Attack vector: unauthenticated network attacker submits a malicious JWS/JWT.\n\n- Effect: base64 decode + JSON/crypto processing of huge buffers pegs CPU and allocates large amounts of RAM; a single request can exhaust service capacity.\n\n- Observed behaviour: on a test host, the legacy code verified a 500 MB header, consuming ~4 GB RSS and ~9 s CPU before failing.\n\n- Severity: High. CVSS v3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5).\n\nAffected Versions\nAuthlib ≤ 1.6.3 (and earlier) when verifying JWS/JWT tokens. Later snapshots with 256 KB header/signature limits are not affected.\n\n**Proof of concept**\n\nLocal demo (do not run against third-party systems):\nDownload [jws_segment_dos_demo.py](https://github.com/user-attachments/files/22450820/jws_segment_dos_demo.py) the PoC in direcotry authlib/\nRun following Command\n```\npython3 jws_segment_dos_demo.py --variant both --sizes \"500MB\" --fork-per-case\n\n```\nEnvironment: Python 3.13.6, Authlib 1.6.4, Linux x86_64, CPUs=8 \nSample output: Refined\n<img width=\"1295\" height=\"306\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6dd8410f-bc36-4717-8cee-649bac9bf291\" />\n\n\n\n\nThe compilation script prints separate “[ATTACKER]” (token construction) and “[SERVER]” (Authlib verification) RSS deltas so defenders can distinguish client-side preparation from server-side amplification. Regression tests authlib/tests/dos/test_jose_dos.py further capture the issue; the saved original_util.py/original_jws.py reproductions still accept the malicious payload.\n\n**Remediation**\n\n- Apply the upstream patch that introduces decoded size limits:\n\n- MAX_HEADER_SEGMENT_BYTES = 256 KB\n\n- MAX_SIGNATURE_SEGMENT_BYTES = 256 KB\n\n- Enforce Limits in authlib/jose/util.extract_segment and _extract_signature.\n\n- Deploy the patched release immediately.\n\n- For additional defence in depth, reject JWS/JWT inputs above a few kilobytes at the proxy or WAF layer, and rate-limit verification endpoints.\n\n**Workarounds (temporary)**\n\n- Enforce input size limits before handing tokens to Authlib.\n\n- Use application-level throttling to reduce amplification risk.\n\n**Resources**\n\n- Demo script: jws_segment_dos_demo.py\n\n- Tests: authlib/tests/dos/test_jose_dos.py\n\n- OWASP JWT Cheat Sheet (DoS guidance)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GHSA-pq5p-34cr-23v9"}],"affected":[{"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"versions":["0.1","0.10","0.11","0.12","0.12.1","0.13","0.14","0.14.1","0.14.2","0.14.3","0.15","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.1rc0","0.2","0.2.1","0.3","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.8","0.9","1.0.0","1.0.0a1","1.0.0a2","1.0.0b1","1.0.0b2","1.0.0rc1","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4"],"fixed":["1.6.5"],"provider":"osv","source":"GHSA-pq5p-34cr-23v9","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920"},{"type":"WEB","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"PACKAGE","url":"https://github.com/authlib/authlib"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html"}]},{"provider":"osv","source_id":"PYSEC-2026-1203","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-1203","license":"CC-BY-4.0","published_at":"2026-07-07T16:03:07.352723Z","modified_at":"2026-07-07T17:46:32.726793Z","summary":"Authlib is vulnerable to Denial of Service via Oversized JOSE Segments","details":"**Summary**\nAuthlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service.\n\n**Impact**\n\n- Attack vector: unauthenticated network attacker submits a malicious JWS/JWT.\n\n- Effect: base64 decode + JSON/crypto processing of huge buffers pegs CPU and allocates large amounts of RAM; a single request can exhaust service capacity.\n\n- Observed behaviour: on a test host, the legacy code verified a 500 MB header, consuming ~4 GB RSS and ~9 s CPU before failing.\n\n- Severity: High. CVSS v3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5).\n\nAffected Versions\nAuthlib ≤ 1.6.3 (and earlier) when verifying JWS/JWT tokens. Later snapshots with 256 KB header/signature limits are not affected.\n\n**Proof of concept**\n\nLocal demo (do not run against third-party systems):\nDownload [jws_segment_dos_demo.py](https://github.com/user-attachments/files/22450820/jws_segment_dos_demo.py) the PoC in direcotry authlib/\nRun following Command\n```\npython3 jws_segment_dos_demo.py --variant both --sizes \"500MB\" --fork-per-case\n\n```\nEnvironment: Python 3.13.6, Authlib 1.6.4, Linux x86_64, CPUs=8 \nSample output: Refined\n<img width=\"1295\" height=\"306\" alt=\"image\" src=\"https://github.com/user-attachments/assets/6dd8410f-bc36-4717-8cee-649bac9bf291\" />\n\n\n\n\nThe compilation script prints separate “[ATTACKER]” (token construction) and “[SERVER]” (Authlib verification) RSS deltas so defenders can distinguish client-side preparation from server-side amplification. Regression tests authlib/tests/dos/test_jose_dos.py further capture the issue; the saved original_util.py/original_jws.py reproductions still accept the malicious payload.\n\n**Remediation**\n\n- Apply the upstream patch that introduces decoded size limits:\n\n- MAX_HEADER_SEGMENT_BYTES = 256 KB\n\n- MAX_SIGNATURE_SEGMENT_BYTES = 256 KB\n\n- Enforce Limits in authlib/jose/util.extract_segment and _extract_signature.\n\n- Deploy the patched release immediately.\n\n- For additional defence in depth, reject JWS/JWT inputs above a few kilobytes at the proxy or WAF layer, and rate-limit verification endpoints.\n\n**Workarounds (temporary)**\n\n- Enforce input size limits before handing tokens to Authlib.\n\n- Use application-level throttling to reduce amplification risk.\n\n**Resources**\n\n- Demo script: jws_segment_dos_demo.py\n\n- Tests: authlib/tests/dos/test_jose_dos.py\n\n- OWASP JWT Cheat Sheet (DoS guidance)","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"PYSEC-2026-1203"}],"affected":[{"ecosystem":"PyPI","package":"authlib","purl":"pkg:pypi/authlib","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5"}]}],"versions":["0.1","0.10","0.11","0.12","0.12.1","0.13","0.14","0.14.1","0.14.2","0.14.3","0.15","0.15.1","0.15.2","0.15.3","0.15.4","0.15.5","0.15.6","0.1rc0","0.2","0.2.1","0.3","0.4","0.4.1","0.5","0.5.1","0.6","0.7","0.8","0.9","1.0.0","1.0.0a1","1.0.0a2","1.0.0b1","1.0.0b2","1.0.0rc1","1.0.1","1.1.0","1.2.0","1.2.1","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4"],"fixed":["1.6.5"],"provider":"osv","source":"PYSEC-2026-1203","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920"},{"type":"WEB","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"PACKAGE","url":"https://github.com/authlib/authlib"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html"},{"type":"PACKAGE","url":"https://pypi.org/project/authlib"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pq5p-34cr-23v9"}]},{"provider":"osv","source_id":"SUSE-SU-2025:3754-1","relation":"self","url":"https://osv.dev/vulnerability/SUSE-SU-2025:3754-1","published_at":"2025-10-23T10:27:00Z","modified_at":"2026-02-04T04:25:24.623887Z","summary":"Security update for python-Authlib","details":"This update for python-Authlib fixes the following issues:\n\n- CVE-2025-61920: limited the size of the header to prevent DoS (bsc#1251921).","severity":[],"affected":[{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP6","package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 3 15 SP7","package":"python-Authlib","purl":"pkg:rpm/suse/python-Authlib&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%203%2015%20SP7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"},{"ecosystem":"openSUSE:Leap 15.6","package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Leap%2015.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.1-150600.3.6.1"}]}],"fixed":["1.3.1-150600.3.6.1"],"provider":"osv","source":"SUSE-SU-2025:3754-1","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20253754-1/"},{"type":"REPORT","url":"https://bugzilla.suse.com/1251921"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2025-61920","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2025-61920","license":"CC-BY-SA-4.0","published_at":"2025-10-10T20:15:00Z","modified_at":"2026-07-16T20:48:18.632607Z","details":"Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.5, Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service. Version 1.6.5 patches the issue. Some temporary workarounds are available. Enforce input size limits before handing tokens to Authlib and/or use application-level throttling to reduce amplification risk.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"UBUNTU-CVE-2025-61920"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2025-61920"}],"affected":[{"ecosystem":"Ubuntu:25.10","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.1-1","1.5.2-1","1.6.0-1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fjammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.5-1ubuntu0.1~esm1"}]}],"versions":["0.15.4-1","0.15.5-1"],"fixed":["0.15.5-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fnoble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.3.0-1ubuntu0.1~esm1"}]}],"versions":["1.2.1-1","1.3.0-1"],"fixed":["1.3.0-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"python-authlib","purl":"pkg:deb/ubuntu/python-authlib?arch=source&distro=esm-apps%2Fresolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0-1","1.6.5-1","1.6.6-1","1.6.7-1","1.6.7-1ubuntu0.1~esm1"],"provider":"osv","source":"UBUNTU-CVE-2025-61920","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61920"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-61920"},{"type":"REPORT","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"},{"type":"REPORT","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"REPORT","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8065-1"}]},{"provider":"osv","source_id":"openSUSE-SU-2025:15629-1","relation":"self","url":"https://osv.dev/vulnerability/openSUSE-SU-2025:15629-1","published_at":"2025-10-13T00:00:00Z","modified_at":"2026-03-23T04:54:01.598915Z","summary":"python311-Authlib-1.6.5-1.1 on GA media","details":"These are all security issues fixed in the python311-Authlib-1.6.5-1.1 package on the GA media of openSUSE Tumbleweed.","severity":[],"affected":[{"ecosystem":"openSUSE:Tumbleweed","package":"python-Authlib","purl":"pkg:rpm/opensuse/python-Authlib&distro=openSUSE%20Tumbleweed","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.5-1.1"}]}],"fixed":["1.6.5-1.1"],"provider":"osv","source":"openSUSE-SU-2025:15629-1","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"}]},{"provider":"redhat-vex","source_id":"CVE-2025-61920","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2025-61920","license":"CC-BY-4.0","published_at":"2025-10-10T19:25:07.679Z","modified_at":"2026-03-16T08:31:18Z","summary":"authlib: Authlib Denial of Service","details":"A denial of service flaw has been discovered in the python Authlib package. Authlib’s JOSE implementation accepts unbounded JWS/JWT header and signature segments. A remote attacker can craft a token whose base64url‑encoded header or signature spans hundreds of megabytes. During verification, Authlib decodes and parses the full input before it is rejected, driving CPU and memory consumption to hostile levels and enabling denial of service.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"CVE-2025-61920"},{"type":"Red Hat","score":"Important","source":"CVE-2025-61920"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Quay 3.10","cpe":"cpe:/a:redhat:quay:3.10::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:22182","RHSA-2025:23064"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.10","cpe":"cpe:/a:redhat:quay:3.10::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.12","cpe":"cpe:/a:redhat:quay:3.12::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:23028"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.12","cpe":"cpe:/a:redhat:quay:3.12::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.13","cpe":"cpe:/a:redhat:quay:3.13::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:23176"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.13","cpe":"cpe:/a:redhat:quay:3.13::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.14","cpe":"cpe:/a:redhat:quay:3.14::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2026:4215"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.14","cpe":"cpe:/a:redhat:quay:3.14::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.9","cpe":"cpe:/a:redhat:quay:3.9::el8","status":"fixed","packages":["quay"],"package_count":1,"fixed":[],"advisories":["RHSA-2025:22287","RHSA-2025:23061"],"provider":"redhat-vex","source":"CVE-2025-61920"},{"vendor":"Red Hat","product":"Red Hat Quay 3.9","cpe":"cpe:/a:redhat:quay:3.9::el8","status":"not_affected","packages":["quay"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2025-61920"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61920.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-61920"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2403179"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2025-61920"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920"},{"type":"WEB","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"WEB","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"}]}],"references":[{"type":"WEB","url":"https://github.com/authlib/authlib/security/advisories/GHSA-pq5p-34cr-23v9"},{"type":"WEB","url":"https://github.com/authlib/authlib/commit/867e3f87b072347a1ae9cf6983cc8bbf88447e5e"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1251921"},{"type":"WEB","url":"https://lists.suse.com/pipermail/sle-security-updates/2025-October/022984.html"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2025/suse-su-2025_3754-1.json"},{"type":"WEB","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20253754-1/"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2025-61920/"},{"type":"WEB","url":"https://ftp.suse.com/pub/projects/security/csaf/2025/opensuse-su-2025_15629-1.json"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2025-61920"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920"},{"type":"PACKAGE","url":"https://github.com/authlib/authlib"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html"},{"type":"PACKAGE","url":"https://pypi.org/project/authlib"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-pq5p-34cr-23v9"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-61920"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-61920"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8065-1"},{"type":"ADVISORY","url":""},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-61920.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2025-61920"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2403179"}],"sources":[{"provider":"osv","source_id":"DLA-4352-1","url":"https://osv.dev/vulnerability/DLA-4352-1","modified_at":"2026-11-20T01:19:01.494804Z","relation":"upstream"},{"provider":"osv","source_id":"USN-8065-1","url":"https://osv.dev/vulnerability/USN-8065-1","license":"CC-BY-SA-4.0","modified_at":"2026-04-27T18:41:08.675153Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2025-61920","url":"https://www.cve.org/CVERecord?id=CVE-2025-61920","license":"CC-BY-4.0","modified_at":"2025-11-03T17:45:23.708Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2025-61920","url":"https://www.suse.com/security/cve/CVE-2025-61920/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-11-20T00:23:17Z","relation":"self"},{"provider":"csaf-suse","source_id":"SUSE-SU-2025:3754-1","url":"https://www.suse.com/support/update/announcement/2025/suse-su-20253754-1/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-10-23T10:27:00Z","relation":"self"},{"provider":"csaf-suse","source_id":"openSUSE-SU-2025:15629-1","url":"https://www.suse.com/security/cve/CVE-2025-61920/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-10-13T00:00:00Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2025-61920","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61920","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2025-61920","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2025-61920","modified_at":"2026-10-23T17:47:39.538053Z","relation":"self"},{"provider":"osv","source_id":"GHSA-pq5p-34cr-23v9","url":"https://osv.dev/vulnerability/GHSA-pq5p-34cr-23v9","license":"CC-BY-4.0","modified_at":"2026-09-10T03:50:30.22343Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-1203","url":"https://osv.dev/vulnerability/PYSEC-2026-1203","license":"CC-BY-4.0","modified_at":"2026-07-07T17:46:32.726793Z","relation":"self"},{"provider":"osv","source_id":"SUSE-SU-2025:3754-1","url":"https://osv.dev/vulnerability/SUSE-SU-2025:3754-1","modified_at":"2026-02-04T04:25:24.623887Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2025-61920","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2025-61920","license":"CC-BY-SA-4.0","modified_at":"2026-07-16T20:48:18.632607Z","relation":"self"},{"provider":"osv","source_id":"openSUSE-SU-2025:15629-1","url":"https://osv.dev/vulnerability/openSUSE-SU-2025:15629-1","modified_at":"2026-03-23T04:54:01.598915Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2025-61920","url":"https://access.redhat.com/security/cve/CVE-2025-61920","license":"CC-BY-4.0","modified_at":"2026-03-16T08:31:18Z","relation":"self"}]}
