Skip to main content

web-token/jwt-framework CVE-2026-134461

| EUVDEUVD-2026-132467 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-11-21 VulnCheck GHSA-gxh8-83xg-w4p6
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach JWE decryption endpoint
  2. Delivery
    Craft JWE with PBES2-HS*+A*KW and huge p2c
  3. Exploit
    Submit token unauthenticated
  4. Execution
    PBKDF2 runs unbounded iterations
  5. Impact
    Worker CPU exhausted, service denied

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target application to register a password-based key-encryption algorithm - PBES2-HS256+A128KW, PBES2-HS384+A192KW, or PBES2-HS512+A256KW - in its decryption AlgorithmManager and to decrypt attacker-supplied JWE tokens; the attacker then sets the PBKDF2 iteration count 'p2c' in the JOSE protected header to a very large value (the vulnerable code validated only is_int($p2c) && $p2c > 0). No authentication, user interaction, or special attacker position is needed (CVSS PR:N/UI:N/AV:N). The principal limiting factor is configuration: deployments that do not enable any PBES2-HS*+A*KW algorithm for untrusted tokens are not exposed, and a custom header checker capping p2c, or disabling PBES2 for untrusted input, blunts exploitation before patching. Cost is amplified by JSON General serialization with multiple recipients and multi-key JWKSets.

Impact

This is a credible, actionable priority rather than a high-CVSS-but-low-real-risk issue, though the risk is scoped by configuration. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) describes a network-reachable, low-complexity, unauthenticated attack with no user interaction, and the only impact is to availability (VA:H; VC:N/VI:N) - consistent with a pure CPU-exhaustion denial of service and no confidentiality or integrity exposure. The vuln.today decision label is 'this_week' (not act_now/emergency), and the flaw was reported by VulnCheck. No CISA KEV listing and no EPSS score were provided, so there is no confirmed active exploitation and no modeled exploitation probability to weigh; absence of these is not evidence of safety but it does argue against treating this as an emergency. The GHSA advisory concretely quantifies the amplification (p2c ≈ 100,000,000 ≈ 87 s of CPU per request, up to PHP_INT_MAX), and notes the attacker pays almost nothing because the decrypter swallows the eventual exception while the worker burns CPU - a strong asymmetry that makes exploitation attractive once a target is known to accept PBES2 tokens. The key limiting factor, confirmed by the vendor advisory, is that the application must register a PBES2-HS*+A*KW algorithm in its decryption AlgorithmManager; deployments that do not enable PBES2 for untrusted input are not exposed. Net: real priority for affected PHP/JWT deployments, with risk gated by whether PBES2 is enabled for untrusted tokens.

Exploit ScenarioDerived

An unauthenticated attacker sends a single crafted JWE to an endpoint that decrypts tokens with a PBES2-HS*+A*KW algorithm, setting the protected-header 'p2c' iteration count to an enormous value (e.g. 100,000,000 or PHP_INT_MAX). The server passes this directly to hash_pbkdf2() with no upper bound, forcing a worker to burn arbitrary CPU before the unwrap fails and the exception is silently discarded. Repeating this, or using JSON General serialization with multiple recipients/JWKSets to multiply the cost per request, exhausts worker CPU and denies service; no public working exploit code is identified at time of analysis, though VulnCheck and the GHSA advisory describe the mechanism in detail.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 21, 2026

Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-library packages by submitting a JWE that uses a PBES2-HS*+A*KW key-encryption algorithm with an oversized p2c (PBKDF2 iteration count) value in its JOSE protected header. PBES2AESKW::unwrapKey() passed that attacker-controlled value straight to hash_pbkdf2() with no upper bound, so a single token requesting 100,000,000 iterations can tie up a worker for roughly 87 seconds before the key unwrap even fails. Applications are exposed only if they register a PBES2-HS*+A*KW algorithm in their decryption AlgorithmManager and process untrusted JWEs; no public exploit code or confirmed active exploitation was identified at time of analysis, and the CVSS 4.0 score of 8.7 reflects high availability impact with no confidentiality or integrity effect.

RemediationAI

Vendor-released patches are available: upgrade composer/web-token/jwt-library or composer/web-token/jwt-framework to 3.4.10 on the 3.4.x branch, 4.0.7 on the 4.0.x branch, or 4.1.7 on the 4.1.x branch, as documented in GHSA-3prj-6hqw-cm82. The fix bounds p2c at DEFAULT_MAX_COUNT = 1,000,000 inside checkHeaderAdditionalParameters() before hash_pbkdf2() is called, and the limit is exposed as a constructor argument so it can be tuned; verify that your legitimate p2c values fall below whatever bound you configure, since lowering it too far will reject valid tokens. If upgrading is not immediately possible, the vendor states the available workarounds are to validate and cap the p2c header with a custom header checker, or to not enable PBES2 algorithms for untrusted tokens - the latter removes the affected code path entirely for untrusted input but breaks interop with any peer that legitimately sends PBES2-wrapped JWEs. Note that with JSON General serialization and multi-key JWKSets each recipient or key adds another PBKDF2 computation, so per-request cost multiplies and rate limiting decryption endpoints is a supplementary measure, not a substitute for the patch.

Affected VersionsENISA

jwt-library 4.0.0 <4.0.7
jwt-framework 4.0.0 <4.0.7
jwt-framework 0 <3.4.10
jwt-library 4.1.0 <4.1.7
jwt-library 3.3.0 <3.4.10
jwt-framework 4.1.0 <4.1.7

Affected Packages

composer web-token/jwt-framework fix: 3.4.10, 4.0.7, 4.1.7
composer web-token/jwt-library fix: 3.4.10, 4.0.7, 4.1.7
euvd jwt_framework fix: 3.4.10, 4.0.7, 4.1.7
euvd jwt_library fix: 3.4.10, 4.0.7, 4.1.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-770 (allocation of resources without limits or throttling) issue in the PHP web-token JWT stack, specifically in PBES2AESKW::unwrapKey(). PBES2 key wrapping, defined in RFC 7518 §4.8, derives a key-encryption key with PBKDF2 and advertises the iteration count in the JOSE protected header field 'p2c'. The library's checkHeaderAdditionalParameters() only verified is_int($p2c) && $p2c > 0, so any positive integer was accepted and forwarded directly into PHP's hash_pbkdf2(). Because the JOSE header is attacker-controlled for any JWE the application decrypts, the iteration count becomes a direct CPU-amplification knob: cost scales linearly with p2c and is paid before unwrap can fail, and the decrypter swallows the resulting exception so the attacker incurs negligible cost. JSON General serialization with multiple recipients and multi-key JWKSets multiply the per-request work because each recipient/key triggers another PBKDF2 derivation. The affected packages are composer/web-token/jwt-library and composer/web-token/jwt-framework, at versions below 3.4.10, 4.0.0 through 4.0.6, and 4.1.0 through 4.1.6. The patch introduces DEFAULT_MAX_COUNT = 1,000,000 in checkHeaderAdditionalParameters(), enforced before any PBKDF2 computation and exposed as a tunable constructor argument for operators whose legitimate p2c values differ.

Know when Jwt Library gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Remote unauthenticated single-request CPU exhaustion with no interaction gives AV:N/AC:L/PR:N/UI:N; impact is availability-only (A:H), with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 21, 2026 - 18:02 EUVD
CVE Published
Nov 21, 2026 - 16:32 cve.org
HIGH 8.7

DescriptionCVE.org

Web-Token jwt-framework and jwt-library before 3.4.10, 4.0.0 before 4.0.7, and 4.1.0 before 4.1.7 contain an uncontrolled resource consumption vulnerability in PBES2AESKW::unwrapKey(), which passes the attacker-controlled p2c JWE header value to hash_pbkdf2() without an upper bound. Unauthenticated attackers can send a JWE using a PBES2-HS*+A*KW algorithm with a huge p2c iteration count to force lengthy PBKDF2 computations and exhaust server CPU.

Technical POC Analysis

Allocation of resources without limits or throttling (CWE-770; the advisory also files it under CWE-400, "uncontrolled resource consumption").

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

CVE-2026-134461 is a high-severity (CVSS 8.7) availability vulnerability in PHP JWT libraries where an unauthenticated attacker can send a single malicious JWE token to exhaust server CPU, potentially taking down authentication or API services for roughly 87 seconds per request. Any customer-facing application that uses the affected web-token/jwt-framework or jwt-library packages with PBES2-HS*+A*KW decryption enabled is exposed to denial-of-service attacks, which could lead to service outages, SLA violations, and reputational harm. Leadership should prioritize this because the vulnerability is trivial to exploit and directly impacts business continuity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) disabling PBES2-HS*+A*KW algorithms in the decryption AlgorithmManager if not required; (2) enforcing an upper bound on the p2c iteration count (e.g., 10,000) by wrapping the key unwrap logic or via a custom middleware; (3) deploying a web application firewall (WAF) or API gateway rule to reject JWE tokens with p2c values that exceed a safe threshold (e.g., >10,000); (4) rate-limiting requests to endpoints that process JWEs; (5) monitoring for abnormal CPU spikes or long-running JWE decryption processes and alerting accordingly.

Threat Intelligence Overview

EPSS Score
0.5%
Top 53% exploitable
Prevalence
Medium
popular PHP JWT library, but exposure requires PBES2 algorithms enabled
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy