Skip to main content
VulnerabilityPublished

CVE-2026-27932: authlib joserfc · Unthrottled Resource Allocation

Affects authlib joserfcSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 7.5 High.

Data as of 29 Oct 2026, 19:04 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 39% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
authlibjoserfcAffected
  • <=1.6.2
Fixed in–
PyPIjoserfcpkg:pypi/joserfcOther threatsAffected
  • <=1.6.2
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, organizations should immediately upgrade joserfc to a version that enforces limits on the p2c iteration count parameter once such a patch is released by the vendor. Until a patch is available, implement strict input validation and filtering at the application or API gateway level to reject JWE tokens with suspiciously high iteration counts in the PBES2 header. Limit or disable the use of PBES2 algorithms for JWE decryption if feasible, especially in scenarios where tokens originate from untrusted sources. Employ rate limiting and anomaly detection to identify and block repeated attempts to exploit this resource exhaustion. Monitor CPU usage patterns on services handling JWE tokens to detect unusual spikes indicative of exploitation attempts. Consider isolating token processing in dedicated environments with resource quotas to contain potential DoS impact. Engage with the vendor or open-source community for updates and patches, and review cryptographic policy configurations to minimize exposure to this class of vulnerabilities.

Description

joserfc is a Python library that provides an implementation of several JSON Object Signing and Encryption (JOSE) standards. In 1.6.2 and earlier, 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

Community reviews

Loading reviews…