Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. PyJWT
  4. ›
  5. CVE-2026-48526

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

June 15, 2026

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.

References

  • github.com/advisories/GHSA-xgmm-8j9v-c9wx
  • github.com/jpadilla/pyjwt/security/advisories/GHSA-xgmm-8j9v-c9wx
  • github.com/pypa/advisory-database/tree/main/vulns/pyjwt/PYSEC-2026-179.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-48526

Code Behaviors & Features

Detect and mitigate CVE-2026-48526 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.13.0

Fixed versions

  • 2.13.0

Solution

Upgrade to version 2.13.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication
  • CWE-347: Improper Verification of Cryptographic Signature

Source file

pypi/PyJWT/CVE-2026-48526.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:53 +0000.