{"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-102271 exists.","fix":"Upgrade pyjwt to 2.14.0 or later.","what":"CVE-2026-102271 is a high-severity vulnerability in jpadilla pyjwt, published on 28 Sep 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-102271 and fix it if it is affected.\n\nWhat it is: CVE-2026-102271 is a high-severity vulnerability in jpadilla pyjwt, published on 28 Sep 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-102271 exists.\n\nAffected packages and fixed versions:\n- pyjwt (PyPI): affected from 2.4.0; fixed in 2.14.0\n- pyjwt (PyPI): affected from 2.4.0; fixed in 2.14.0\n- pyjwt (PyPI): affected from 2.4.0; 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-102271/ (Markdown: https://insights.sbomify.com/CVE-2026-102271/index.md)","id":"CVE-2026-102271","markdown":"https://insights.sbomify.com/CVE-2026-102271/index.md","name":"CVE-2026-102271","record":{"aliases":["AZL-105221","CLEANSTART-2026-PD49878","CLEANSTART-2026-XO84437","DEBIAN-CVE-2026-102271","ECHO-1994-4c86-f69b","GHSA-p4g4-x82p-q773","MINI-252h-3mxp-9jhf","MINI-2mmf-4xh6-r45x","MINI-4fqh-q9f6-5q5r","MINI-5gpg-5jpv-h4h4","MINI-5h4c-rchp-j4rf","MINI-5r6r-2w4g-c7qg","MINI-6mm4-j7ch-qw7v","MINI-6vww-3q2j-7967","MINI-7ghc-h4j5-g68x","MINI-96x3-8rpm-rw3r","MINI-fqx4-rvcc-24fm","MINI-fxhv-vq4v-v253","MINI-g28v-pcpg-jhx2","MINI-grx5-6rjv-c7m5","MINI-hcwm-p9gc-m95q","MINI-hm48-frmc-92f7","MINI-j46m-6227-2vrq","MINI-m2h9-q2x2-jrgx","MINI-mpph-j96c-rqw5","MINI-p453-94p5-mh5h","MINI-pq3j-vx4g-p496","MINI-v4gr-p85r-r4mv","MINI-w43x-8r3w-hj23","MINI-w48v-qv9x-3w4p","MINI-wjw4-8vv6-69mc","PYSEC-2026-4149","ROOT-APP-PYPI-CVE-2026-102271","UBUNTU-CVE-2026-102271"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":true,"product_category":"Python JWT library","requires_auth":"none","summary":"Attackers can forge HMAC tokens by supplying DER public keys as secrets, bypassing algorithm guards in PyJWT applications mixing HMAC and asymmetric algorithms.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"pyjwt","vendor":"pyjwt_project"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"description":"PyJWT is a Python implementation of JSON Web Token standards. From 2.4.0 until 2.14.0, PyJWT HMACAlgorithm.prepare_key is affected because asymmetric-key guard relies on textual markers that are absent from DER encoding. This occurs when an application mixes HMAC and asymmetric algorithms and supplies a DER public key as the shared verification key. As a result, PyJWT uses public DER bytes as an HMAC secret. Consequently, an attacker who knows the public key can forge authenticated HMAC tokens. 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: Public keys in DER form are accepted as HMAC secrets, bypassing the CVE-2022-29217 guard","id":"CVE-2026-102271","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"security_feature_bypass","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"PyJWT BOM Bypass","id":"CVE-2026-102272"},"packages":[{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["2.4.0"],"last_affected":[],"package":"pyjwt","purl":null,"source":"GHSA-p4g4-x82p-q773"},{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["2.4.0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"GHSA-p4g4-x82p-q773"},{"ecosystem":"PyPI","fixed":["2.14.0"],"introduced":["2.4.0"],"last_affected":[],"package":"pyjwt","purl":"pkg:pypi/pyjwt","source":"PYSEC-2026-4149"}],"prev":{"headline":"PyJWT: ReDoS vulnerability when calling the `is_pem_format` function.","id":"CVE-2026-102270"},"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 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":"total"},"state":"PUBLISHED","updated":"2026-10-01","vendors":["jpadilla"]},"summary":"Attackers can forge HMAC tokens by supplying DER public keys as secrets, bypassing algorithm guards in PyJWT applications mixing HMAC and asymmetric algorithms.","url":"https://insights.sbomify.com/CVE-2026-102271/"}