# CVE-2026-48525: PyJWT: Unauthenticated DoS via unbounded Base64URL decoding of unused payload segment in b64=false detached JWS

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-28T15:11:12.483Z
- Modified: 2026-10-25T23:10:00.167Z
- Also known as: GHSA-w7vc-732c-9m39, PYSEC-2026-178
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

PyJWT is a JSON Web Token implementation in Python. From 2.8.0 to 2.12.1, when verifying detached JWS tokens using the unencoded-payload option ("b64": false, RFC 7797), PyJWT performs Base64URL decoding of the compact-serialization payload segment before enforcing the detached-payload rules. For b64=false, PyJWT later discards that decoded payload and replaces it with the caller-provided detached_payload. In practice, this turns the middle segment into an attacker-controlled “work amplifier”: a remote client can supply an arbitrarily large Base64URL payload segment that forces CPU work + memory allocations even if the signature is invalid. This creates an unauthenticated DoS vector against any endpoint that verifies detached JWS using PyJWT. This vulnerability is fixed in 2.13.0.

(As written by CVE List.)

## Affected

- jpadilla pyjwt: >= 2.8.0, < 2.13.0
- pyjwt (PyPI): from 2.8.0 before 2.13.0
- pyjwt_project pyjwt: from 2.8.0 up to 2.12.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- PyPA Advisory Database: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-w7vc-732c-9m39> (exploit, evidence, mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-48525> (advisory)
- <https://github.com/jpadilla/pyjwt> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-178.yaml> (web)

## Sources

- CVE List: [CVE-2026-48525](https://www.cve.org/CVERecord?id=CVE-2026-48525), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-w7vc-732c-9m39](https://github.com/advisories/GHSA-w7vc-732c-9m39), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48525](https://nvd.nist.gov/vuln/detail/CVE-2026-48525), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-178](https://osv.dev/vulnerability/PYSEC-2026-178), CC-BY-4.0, modified 2026-06-02

---

Page: https://cve.day/CVE-2026-48525 · Whole record: https://cve.day/CVE-2026-48525.json · Rebuilt by cve.day 2026-11-25T22:59:22.941Z
