{"answers":{"affected":"3 open source packages ship an affected version, including pyjwt. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48525 exists.","fix":"Upgrade pyjwt to 2.13.0 or later.","what":"CVE-2026-48525 is a medium-severity denial of service vulnerability in jpadilla pyjwt, published on 28 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-48525 and fix it if it is affected.\n\nWhat it is: CVE-2026-48525 is a medium-severity denial of service vulnerability in jpadilla pyjwt, published on 28 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-48525 exists.\n\nAffected packages and fixed versions:\n- pyjwt (PyPI): affected from 2.8.0; fixed in 2.13.0\n- pyjwt (PyPI): affected from 2.8.0; fixed in 2.13.0\n- pyjwt (PyPI): affected from 2.8.0; fixed in 2.13.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-48525/ (Markdown: https://insights.sbomify.com/CVE-2026-48525/index.md)","id":"CVE-2026-48525","markdown":"https://insights.sbomify.com/CVE-2026-48525/index.md","name":"CVE-2026-48525","record":{"aliases":["AZL-93042","BELL-CVE-2026-48525","CLEANSTART-2026-CR88221","CLEANSTART-2026-GX50966","DEBIAN-CVE-2026-48525","ECHO-c303-c499-bcc4","GHSA-w7vc-732c-9m39","MINI-264m-qmhh-88rq","MINI-2v39-c68h-33vp","MINI-4fmg-2rg4-4c9v","MINI-4vm5-jqvq-8677","MINI-5c4j-wr54-r2vr","MINI-5f5m-x68q-hcx7","MINI-5j2c-84qv-xhm7","MINI-5rhv-v84q-c8mq","MINI-69jj-989j-549g","MINI-7649-qqxh-fxv7","MINI-7hhj-hw4f-xj7f","MINI-8vgv-46j9-xxgq","MINI-9j84-crrc-rhrh","MINI-9xx5-q7p7-fcpv","MINI-c43r-7q73-8f6p","MINI-cwv4-5rxg-vq6p","MINI-gwfr-9fm2-xx2q","MINI-h8r7-qgmm-58pq","MINI-m4q6-9p75-64cr","MINI-mgx6-q9gm-qg7r","MINI-mh5j-w938-x4vx","MINI-mx95-775h-c7f9","MINI-pr62-g4qf-q65w","MINI-pwhx-mw84-q39f","MINI-qv7g-r4q4-cq75","MINI-qw8f-635m-mgxw","MINI-v59g-97mf-hjr8","MINI-v62h-q6f7-4p28","PYSEC-2026-178","ROOT-APP-PYPI-CVE-2026-48525","UBUNTU-CVE-2026-48525"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":true,"product_category":"Python JWT library","requires_auth":"none","summary":"Remote attackers can cause denial of service by sending large Base64URL payloads to endpoints verifying detached JWS tokens with specific options.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyjwt","vendor":"pyjwt_project"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"PyJWT: Unauthenticated DoS via unbounded Base64URL decoding of unused payload segment in b64=false detached JWS","id":"CVE-2026-48525","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":1,"next":{"headline":"PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed","id":"CVE-2026-48526"},"packages":[{"ecosystem":"PyPI","fixed":["2.13.0"],"introduced":["2.8.0"],"last_affected":[],"package":"pyjwt","purl":null,"source":"GHSA-w7vc-732c-9m39"},{"ecosystem":"PyPI","fixed":["2.13.0"],"introduced":["2.8.0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"GHSA-w7vc-732c-9m39"},{"ecosystem":"PyPI","fixed":["2.13.0"],"introduced":["2.8.0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"PYSEC-2026-178"}],"prev":{"headline":"PyJWT: PyJWKClient unbounded JWKS endpoint requests via attacker-controlled kid values (DoS)","id":"CVE-2026-48524"},"products":["pyjwt"],"published":"2026-05-28","related":[{"cvss_score":9.1,"headline":"PyJWT: Asymmetric-PEM detection bypass: whitespace/line-ending-mutated public keys skip the HS/asymmetric confusion guard","id":"CVE-2026-102268","kev_date_added":null,"published":"2026-09-28"},{"cvss_score":7.5,"headline":"PyJWT accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)","id":"CVE-2026-32597","kev_date_added":null,"published":"2026-03-12"},{"cvss_score":7.4,"headline":"PyJWK accepts empty HMAC keys, bypassing PyJWT's empty-key validation","id":"CVE-2026-102266","kev_date_added":null,"published":"2026-09-28"},{"cvss_score":7.4,"headline":"PyJWT: PyJWKClient follows redirects when fetching JWKS","id":"CVE-2026-102267","kev_date_added":null,"published":"2026-09-28"},{"cvss_score":7.4,"headline":"PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard","id":"CVE-2026-102271","kev_date_added":null,"published":"2026-09-28"},{"cvss_score":7.4,"headline":"PyJWT BOM Bypass","id":"CVE-2026-102272","kev_date_added":null,"published":"2026-09-28"},{"cvss_score":7.4,"headline":"PyJWT accepts public JWK containers as HMAC secrets","id":"CVE-2026-102273","kev_date_added":null,"published":"2026-09-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-23","vendors":["jpadilla"]},"summary":"Remote attackers can cause denial of service by sending large Base64URL payloads to endpoints verifying detached JWS tokens with specific options.","url":"https://insights.sbomify.com/CVE-2026-48525/"}