CVE-2026-134461 — Vulnerability in web-token/jwt-framework
PHP JWT Library: PBES2-HS*+A*KW unwrap accepts an unbounded p2c iteration count, enabling CPU-amplification denial of service
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.51%). Schedule for your next planned update.
Does your project use an affected web-token/jwt-framework version?
Paste your composer.lock to check it for CVE-2026-134461 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
When a JWE uses a password-based key-encryption algorithm (PBES2-HS256+A128KW, PBES2-HS384+A192KW, PBES2-HS512+A256KW), PBES2AESKW::unwrapKey() reads the p2c (PBKDF2 iteration count) parameter directly from the attacker-controlled JOSE header and passes it to hash_pbkdf2() with no upper bound. The only validation performed (checkHeaderAdditionalParameters()) was is_int($p2c) && $p2c > 0.
An unauthenticated attacker can craft a single JWE whose protected header sets a very large p2c (e.g. 100_000_000 ≈ 87 s of CPU, or PHP_INT_MAX), forcing a worker to spend an arbitrary amount of CPU inside PBKDF2 before the key unwrap can even fail. The decrypter swallows the eventual exception, so the attacker pays almost nothing while the server burns CPU. JSON General serialization (multiple recipients) and multi-key JWKSets multiply the cost. This is a classic uncontrolled-resource-consumption (CWE-400) denial of service.
Affected configurations
Applications that register any PBES2-HS*+A*KW algorithm in their decryption AlgorithmManager.
Patches
PBES2AESKW now enforces a configurable maximum iteration count (DEFAULT_MAX_COUNT = 1_000_000, well above realistic legitimate values which are a few thousand) in checkHeaderAdditionalParameters(), before any PBKDF2 computation. The bound is exposed as a constructor argument so operators can tune it.
Workarounds
Before upgrading: validate/limit the p2c header with a custom header checker, or do not enable PBES2 algorithms for untrusted tokens.
References
- RFC 7518 §4.8 (PBES2)
- CWE-400: Uncontrolled Resource Consumption
Résolution
Un correctif a été préparé sur une branche dédiée basée sur 3.4.x, avec des tests anti-régression dédiés (fork privé temporaire de cette advisory, PR #1).
PBES2 — PBES2AESKW::unwrapKey() borne désormais le paramètre p2c (constante DEFAULT_MAX_COUNT = 1_000_000, configurable via le constructeur) avant tout appel à hash_pbkdf2(), empêchant l'amplification CPU (DoS).
Validation : php -l OK, PHPUnit vert, aucune nouvelle erreur PHPStan introduite (différentiel nul vs 3.4.x), aucun commentaire ajouté dans le code source. Après merge, cascade prévue 3.4.x → 4.0.x → 4.1.x.
Advisory Timeline
- First published June 18, 2026 (161 days ago).
- Last revised November 21, 2026 — 156 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "web-token/jwt-framework:^4.1.7"
composer require "web-token/jwt-library:^4.1.7"
composer require "web-token/jwt-library:^4.0.7"
composer require "web-token/jwt-library:^3.4.10"
composer require "web-token/jwt-framework:^3.4.10"
composer require "web-token/jwt-framework:^4.0.7"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| web-token/jwt-framework Packagist · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 (+3 more) | 4.1.7 |
| web-token/jwt-library Packagist · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 (+3 more) | 4.1.7 |
| web-token/jwt-library Packagist · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+3 more) | 4.0.7 |
| web-token/jwt-library Packagist · Affected: 3.3.0, 3.3.1, 3.3.2, 3.3.3 (+12 more) | 3.4.10 |
| web-token/jwt-framework Packagist · Affected: 3.1.0, 3.1.1, 3.1.2, 3.1.3 (+127 more) | 3.4.10 |
| web-token/jwt-framework Packagist · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+3 more) | 4.0.7 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
References
- https://github.com/web-token/jwt-framework/security/advisories/GHSA-3prj-6hqw-cm82WEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/web-token/jwt-library/GHSA-3prj-6hqw-cm82.yamlWEB
- https://github.com/web-token/jwt-frameworkPACKAGE
- https://github.com/web-token/jwt-framework/releases/tag/3.4.10WEB
- https://github.com/web-token/jwt-framework/releases/tag/4.0.7WEB
- https://github.com/web-token/jwt-framework/releases/tag/4.1.7WEB
Frequently Asked Questions
- What is CVE-2026-134461?
- PHP JWT Library: PBES2-HS*+A*KW unwrap accepts an unbounded p2c iteration count, enabling CPU-amplification denial of service. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
- How do I check if my project is affected by CVE-2026-134461?
- CVE-2026-134461 affects web-token/jwt-framework and web-token/jwt-library. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-134461 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 36.7% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-103035HIGH
TeamPass folder re-parenting authorization bypass
- CVE-2026-110782HIGH
SAML2: Incomplete fix of CVE-2026-49283: unsigned embedded Response bypasses HTTP-Artifact signature verification (no embedded-Issuer binding)