PYSEC-2022-202

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pyjwt/PYSEC-2022-202.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2022-202
Aliases
Published
2022-05-24T15:15:00Z
Modified
2023-11-08T04:09:10.999573Z
Summary
[none]
Details

PyJWT is a Python implementation of RFC 7519. PyJWT supports multiple different JWT signing algorithms. With JWT, an attacker submitting the JWT token can choose the used signing algorithm. The PyJWT library requires that the application chooses what algorithms are supported. The application can specify jwt.algorithms.get_default_algorithms() to get support for all algorithms, or specify a single algorithm. The issue is not that big as algorithms=jwt.algorithms.get_default_algorithms() has to be used. Users should upgrade to v2.4.0 to receive a patch for this issue. As a workaround, always be explicit with the algorithms that are accepted and expected when decoding.

References

Affected packages

PyPI / pyjwt

Package

Affected ranges

Type
GIT
Repo
https://github.com/jpadilla/pyjwt
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
ECOSYSTEM
Events
Introduced
1.5.0
Fixed
2.4.0

Affected versions

1.*

1.5.0
1.5.1
1.5.2
1.5.3
1.6.0
1.6.1
1.6.3
1.6.4
1.7.0
1.7.1

2.*

2.0.0a1
2.0.0a2
2.0.0
2.0.1
2.1.0
2.2.0
2.3.0