Security mailing lists by PureSourceCode

CVE-2026-48526

HIGH 7.4CVSS 3.1

PyJWT: Public-key JWK accepted as HMAC secret enables forged HS256 tokens when mixed families are allowed

PyJWT is a JSON Web Token implementation in Python. Prior to 2.13.0, when the verifier is decoding JSON Web Tokens, while supporting both asymmetric and HMAC algorithms, the library does not validate use of JSON Web Keys in HMAC algorithm, allowing attacker to use the issuer public key as the secret key for HMAC algorithm. This vulnerability is fixed in 2.13.0.

Published
28 May 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-287CWE-347
Also known as
GHSA-xgmm-8j9v-c9wxPYSEC-2026-179
Sources
NVDJSONOSV GHSA-xgmm-8j9v-c9wxJSONOSV PYSEC-2026-179JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV PyPA CVSS 3.1 HIGH 7.4 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD pyjwt_project pyjwt
cpe:2.3:a:pyjwt_project:pyjwt:*:*:*:*:*:*:*:*
< 2.13.0 2.13.0
OSV PyPI pyjwt < 2.13.0 2.13.0

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 28 May 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 May 2026)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Jun 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.