{"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-102270 exists.","fix":"Upgrade pyjwt to 2.14.0 or later.","what":"CVE-2026-102270 is a medium-severity denial of service vulnerability in jpadilla pyjwt, published on 28 Sep 2026. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-102270 and fix it if it is affected.\n\nWhat it is: CVE-2026-102270 is a medium-severity denial of service vulnerability in jpadilla pyjwt, published on 28 Sep 2026. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-102270 exists.\n\nAffected packages and fixed versions:\n- pyjwt (PyPI): affected all versions; fixed in 2.14.0\n- pyjwt (PyPI): affected all versions; fixed in 2.14.0\n- pyjwt (PyPI): affected all versions; fixed in 2.14.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-102270/ (Markdown: https://insights.sbomify.com/CVE-2026-102270/index.md)","id":"CVE-2026-102270","markdown":"https://insights.sbomify.com/CVE-2026-102270/index.md","name":"CVE-2026-102270","record":{"aliases":["AZL-104988","CLEANSTART-2026-IP96561","CLEANSTART-2026-JF42627","DEBIAN-CVE-2026-102270","ECHO-629d-f198-695f","GHSA-jwrc-g2q2-pq5p","MINI-24xg-9g35-g9p6","MINI-2gv9-hjgv-9pv9","MINI-42mf-52j2-g8jg","MINI-442g-7vr8-pm7p","MINI-5p6j-h6g8-5pch","MINI-7mw3-252h-f5vv","MINI-9393-9gfp-57wj","MINI-c64x-xw2r-j3wq","MINI-cf8w-rhcp-wq3g","MINI-crvw-gccv-3584","MINI-f8r7-xxr2-ghmg","MINI-fj78-pmw5-whm8","MINI-g3c8-gwq7-2x4q","MINI-g6j5-3cx5-8vwj","MINI-gpgv-m9fq-pqf4","MINI-hg7m-j745-ph24","MINI-hgjf-729q-qvrp","MINI-hx9q-wqq7-9q6p","MINI-j9pv-5536-j27w","MINI-jx65-2653-rmjh","MINI-m43h-mcfq-6fxr","MINI-r4jv-p8cc-hw44","MINI-rm7q-cvjj-7p5j","MINI-v3vq-r7wq-7xg3","MINI-xcg2-mvjp-r4x5","PYSEC-2026-4148","UBUNTU-CVE-2026-102270"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python JWT library","requires_auth":"high_privilege","summary":"An attacker can cause excessive CPU consumption and denial of service in applications using PyJWT by providing malformed PEM-like input.","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":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"description":"PyJWT is a Python implementation of JSON Web Token standards. Prior to 2.14.0, PyJWT is_pem_format is affected because lazy PEM regular expression backtracks extensively. This occurs when a certificate-like input contains repeated BEGIN markers without a matching END marker. As a result, is_pem_format performs unbounded backtracking while searching for a PEM end marker. Consequently, an attacker can cause intensive CPU consumption. This issue is fixed in version 2.14.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: ReDoS vulnerability when calling the `is_pem_format` function.","id":"CVE-2026-102270","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"PyJWT: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard","id":"CVE-2026-102271"},"packages":[{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["0"],"last_affected":[],"package":"pyjwt","purl":null,"source":"GHSA-jwrc-g2q2-pq5p"},{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"GHSA-jwrc-g2q2-pq5p"},{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"PYSEC-2026-4148"}],"prev":{"headline":"PyJWT: Non-canonical signature segments enable raw-token revocation bypass","id":"CVE-2026-102269"},"products":["pyjwt"],"published":"2026-09-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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-29","vendors":["jpadilla"]},"summary":"An attacker can cause excessive CPU consumption and denial of service in applications using PyJWT by providing malformed PEM-like input.","url":"https://insights.sbomify.com/CVE-2026-102270/"}