VDB
Sign up
HIGH8.2

PYSEC-2026-4183

Quick fix

PYSEC-2026-4183 — pyjwt: upgrade to the fixed version with the command below.

pip install --upgrade 'pyjwt>=2.15.0'

Details

PyJWT is a Python implementation of JSON Web Token standards. From 2.1.0 until 2.15.0, PyJWT OKPAlgorithm.from_jwk in jwt/algorithms.py is affected because private-JWK import path does not compare the public key derived from d with x. This occurs when an OKP private JWK supplies non-corresponding x and d components. As a result, identity derived from x can differ from operations performed with d. Consequently, if an integration also accepts private key parameters from a proof header without rejecting them, an attacker may use a stolen sender-constrained token without the legitimate private key. This issue is fixed in version 2.15.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyjwt
Introduced in: 2.1.0Fixed in: 2.15.0
Fixpip install --upgrade 'pyjwt>=2.15.0'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/pyjwt"]}'