CVE-2026-27932
joserfc is a Python library that provides an implementation of …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/authlib/joserfc/security/advisories/GHSA-w5r5-m38g-f9f9
- github.com/authlib/joserfc/commit/696a961
- github.com/advisories/GHSA-w5r5-m38g-f9f9
- github.com/authlib/joserfc/commit/696a9611ab982c45ee2190ed79ca8e1d8e09398f
- nvd.nist.gov/vuln/detail/CVE-2026-27932
- nvd.nist.gov/vuln/detail/CVE-2026-27932
- cve.org/CVERecord?id=CVE-2026-27932
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.