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

CVE-2026-27932: joserfc's PBES2 p2c Unbounded Iteration Count enables Denial of Service (DoS)

March 2, 2026 (updated March 4, 2026)

A resource exhaustion vulnerability in joserfc allows an unauthenticated attacker to cause a Denial of Service (DoS) via CPU exhaustion. When the library decrypts a JSON Web Encryption (JWE) token using Password-Based Encryption (PBES2) algorithms, it reads the p2c (PBES2 Count) parameter directly from the token’s protected header. This parameter defines the number of iterations for the PBKDF2 key derivation function. Because joserfc does not validate or bound this value, an attacker can specify an extremely large iteration count (e.g., 2^31 - 1), forcing the server to expend massive CPU resources processing a single token.

This vulnerability exists at the JWA layer and impacts all high-level JWE and JWT decryption interfaces if PBES2 algorithms are allowed by the application’s policy.

References

  • github.com/advisories/GHSA-w5r5-m38g-f9f9
  • github.com/authlib/joserfc
  • github.com/authlib/joserfc/commit/696a961
  • github.com/authlib/joserfc/commit/696a9611ab982c45ee2190ed79ca8e1d8e09398f
  • github.com/authlib/joserfc/security/advisories/GHSA-w5r5-m38g-f9f9
  • nvd.nist.gov/vuln/detail/CVE-2026-27932

Code Behaviors & Features

Detect and mitigate CVE-2026-27932 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 1.6.3

Fixed versions

  • 1.6.3

Solution

Upgrade to version 1.6.3 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

pypi/joserfc/CVE-2026-27932.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 24 Mar 2026 12:19:23 +0000.