Skip to main content

web-token JWT Framework CVE-2026-134458

| EUVDEUVD-2026-132470 HIGH
Missing Cryptographic Step (CWE-325)
2026-11-21 VulnCheck GHSA-mvv3-825v-7qm4
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain JWE token (ECDH-ES + A256CBC-HS512)
  2. Exploit
    Recognize vulnerable alg/enc pair
  3. Execution
    Decrypt under all-zero AES-256 key
  4. Impact
    Recover plaintext confidential content

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic step completeness
Exploitation Conditions

Exploitation is limited to JWE tokens produced with 'alg' set to ECDH-ES (or the non-registered ECDH-SS) in direct key agreement mode AND 'enc' set to A256CBC-HS512 (content fully readable under an all-zero AES key) or A192CBC-HS384 (content key reduced to 64-bit strength); the curve is irrelevant (confirmed with P-256, P-521, X25519). The attacker must hold a token already produced under these combinations - PR:N means no authentication to the vulnerable system is needed, but possession of the token is required. NOT exploitable with A128CBC-HS256, A128GCM/A192GCM/A256GCM, or the key-wrapping variants ECDH-ES+A128KW/A192KW/A256KW, which request 256 bits or fewer and are fully covered by one SHA-256 round. The limiting factor is therefore deployment configuration: applications must have chosen one of the two specific content encryption algorithms with ECDH-ES direct agreement, which is why the CVSS 4.0 vector carries AT:P.

Impact

This is a genuine confidentiality defect, not a CVSS-inflated non-issue, but its real-world urgency is bounded by a specific configuration precondition. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) with VC:H and the GHSA advisory agree on the mechanism: ECDH-ES/ECDH-SS direct key agreement derives at most 32 bytes via a single SHA-256 round, so JWE using A256CBC-HS512 is encrypted under an all-zero AES-256 key (fully readable by anyone holding the token) and A192CBC-HS384 content keys have only 64-bit strength. The AT:P (attack requirements present) and the vuln.today 'this_week' decision label both correctly reflect that exploitation is not against arbitrary deployments - it requires the victim application to have been configured with these exact alg/enc combinations, and the attacker must already possess a produced token. No EPSS score, no CISA KEV listing, and no SSVC automatable/technical-impact fields were supplied; absence of KEV/EPSS is not evidence of safety, but there is no signal of mass exploitation either. The impact is confined to confidentiality (MAC_KEY stays secret, so integrity/VI:N is accurate); where A256CBC-HS512 was used, every such token should be treated as already disclosed. Net: a real, high-confidence priority for any shop using ECDH-ES direct agreement with the two named content encryption algorithms, and a non-issue for everyone else using GCM, A128CBC-HS256, or the ECDH-ES+AxxxKW key-wrapping variants.

Exploit ScenarioDerived

An application issues JWE tokens to clients using 'alg':'ECDH-ES' with 'enc':'A256CBC-HS512' (e.g. encrypted session or identity tokens). Because the content key is an all-zero AES-256 key, any party that intercepts, logs, or is handed such a token - a proxy, a client, a log aggregator, or an attacker who exfiltrates a token store - decrypts the plaintext without ever touching the recipient's private key. No public exploit identified at time of analysis, but the decryption is trivial given a fixed zero key, and the network attack vector with low complexity means no special tooling is required once a token is obtained.

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

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

Alert me

AnalysisAIv1 – Nov 21, 2026

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt-framework and web-token/jwt-library are effectively encrypted under an all-zero AES-256 key, so anyone who holds such a token can read its plaintext without the recipient's private key. The root cause is ConcatKDF::generate(), which performs a single SHA-256 round and can never return more than 32 bytes, leaving ENC_KEY empty for the 64-byte CEK that A256CBC-HS512 expects (PHP's OpenSSL extension zero-pads the short key); with A192CBC-HS384 the content key drops to 64-bit strength because only 8 of the 48 required bytes remain secret. The flaw is configuration-bounded: A128CBC-HS256, the AES-GCM modes, and all ECDH-ES+A*KW key-wrapping variants request 256 bits or less and are unaffected, so only deployments that selected one of the two oversized CBC-HMAC content algorithms with direct agreement are exposed; no public exploit was identified at time of analysis, and fixed releases are available at 3.4.12, 4.0.8, 4.1.10 and 4.2.4.

RemediationAI

Upgrade to a vendor-released fixed version: 3.4.12 for the 3.x branch, 4.0.8 for 4.0.x, 4.1.10 for 4.1.x and 4.2.4 for 4.2.x; the fix makes ConcatKDF::generate() concatenate as many SHA-256 rounds as the requested length needs and adds key-length validation in JWEBuilder and JWEDecrypter. Plan the rollout as a coordinated change, because the corrected derivation changes the CEK for ECDH-ES with A192CBC-HS384 and A256CBC-HS512: tokens issued with those combinations before the upgrade will no longer decrypt afterwards and must be reissued, and patched and unpatched parties cannot exchange such tokens, so producers and consumers have to move together (see https://github.com/web-token/jwt-framework/security/advisories/GHSA-5pj7-wx9m-cjh6). Treat the plaintext of every existing token produced with ECDH-ES plus A256CBC-HS512 as already disclosed and the content of ECDH-ES plus A192CBC-HS384 tokens as weakly protected. If upgrading cannot happen immediately, the vendor's documented workaround is to encrypt with ECDH-ES and A128CBC-HS256, or with A128GCM, A192GCM or A256GCM, or to switch to the key-wrapping variants ECDH-ES+A128KW, ECDH-ES+A192KW or ECDH-ES+A256KW, all of which request 256 bits or fewer and are fully covered by a single SHA-256 round; the trade-off is that changing alg or enc alters the token format, so every producer and consumer must support the alternative parameters, and per the vendor updating is the only complete fix.

Affected VersionsENISA

jwt-library 4.0.0 <4.0.8
jwt-library 3.3.0 <3.4.12
jwt-library 4.2.0 <4.2.4
jwt-framework 4.1.0 <4.1.10
jwt-framework 0 <3.4.12
jwt-encryption-algorithm-ecdh-es 1.2.0 ≤3.2.10
jwt-framework 4.0.0 <4.0.8
jwt-framework 4.2.0 <4.2.4
jwt-library 4.1.0 <4.1.10

Affected Packages

euvd jwt_encryption_algorithm_ecdh_es no fix
euvd jwt_framework fix: 3.4.12, 4.0.8, 4.1.10, 4.2.4
euvd jwt_library fix: 3.4.12, 4.0.8, 4.1.10, 4.2.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

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

Technical ContextAI · show details

web-token/jwt-framework and jwt-library are PHP (Composer) JOSE/JWT implementations; the defect lives in the Concat KDF that RFC 7518 section 4.6.2 adopts from NIST SP 800-56A section 5.8.1 for the ECDH-ES and ECDH-SS key agreement algorithms. A conforming Concat KDF concatenates as many SHA-256 rounds as the requested key length requires, but ConcatKDF::generate() computed a single round and truncated it, capping derived output at 32 bytes. In direct key agreement mode the derived value becomes the content encryption key, which the AES-CBC-HMAC-SHA2 algorithms split into MAC_KEY followed by ENC_KEY (RFC 7518 section 5.2.2.1). For A256CBC-HS512 the 64-byte CEK is therefore exhausted by MAC_KEY, ENC_KEY is empty, and PHP's OpenSSL extension zero-pads the short key, yielding an all-zero AES-256 content key; for A192CBC-HS384 the 48-byte CEK leaves ENC_KEY with 8 secret bytes plus 16 zero bytes, i.e. 64 bits of strength instead of 192. MAC_KEY remains secret, so integrity is intact and the loss is purely confidentiality, which maps to CWE-325 (missing cryptographic step in the derivation) and CWE-326 (inadequate encryption strength). Because neither JWEBuilder nor JWEDecrypter validated the length of a key obtained by key agreement, both sides derived the same short key and in-library round trips succeeded silently; conforming third-party implementations cannot decrypt the resulting tokens and vice versa. The behaviour is reproducible on P-256, P-521 and X25519, so the curve choice is irrelevant, and the defect has been present since the library's first release.

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.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.9 MEDIUM

AC:H because exploitation requires the target to use the specific ECDH-ES + A256CBC-HS512/A192CBC-HS384 configuration; PR:N as only token possession is needed; C:H with I:N/A:N since only confidentiality is lost.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
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.2

DescriptionCVE.org

web-token jwt-framework and jwt-library before 3.4.12, 4.0.x before 4.0.8, 4.1.x before 4.1.10, and 4.2.x before 4.2.4, and jwt-encryption-algorithm-ecdh-es through 3.2.10, have a ConcatKDF::generate() that performs a single SHA-256 round, deriving at most 32 bytes for ECDH-ES and ECDH-SS direct key agreement. Anyone holding a JWE using A256CBC-HS512 can decrypt it under an all-zero AES key, while A192CBC-HS384 content keys have only 64-bit strength.

Technical POC Analysis

CWE-325 (Missing Cryptographic Step), with the advisory also tagging CWE-326.

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

A high-severity flaw in the web-token/jwt-framework and web-token/jwt-library causes JWE tokens using ECDH-ES (or ECDH-SS) direct key agreement with A256CBC-HS512 to be encrypted with an all-zero key, allowing anyone with a token to read its plaintext without the private key. Only deployments using these specific cipher suites are affected; other configurations remain secure. This could lead to unauthorized disclosure of sensitive token contents, impacting confidentiality and potentially enabling further attacks.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: reconfigure JWE to avoid ECDH-ES/ECDH-SS direct key agreement with A256CBC-HS512 or A192CBC-HS384, use alternative algorithms (A128CBC-HS256, AES-GCM, or ECDH-ES+A*KW), rotate affected tokens and keys, and monitor for suspicious token usage.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Medium
popular PHP JWT library, but only ECDH-ES direct-agreement configs affected
Data Quality
4 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.2%
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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