Skip to main content

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

| EUVDEUVD-2026-136752 MEDIUM
Inadequate Encryption Strength (CWE-326)
2026-11-26 VulnCheck
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Identify JWE app configured with empty/short oct key
  2. Delivery
    Reconstruct all-zero key-encryption key via zero-padding
  3. Exploit
    Unwrap content encryption keys
  4. Execution
    Decrypt issued tokens and forge accepted tokens
  5. Impact
    Impersonate users / read confidential claims

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Encryption strength requirements
Exploitation Conditions

Two concrete conditions must both hold: (1) the application uses one of the A128KW/A192KW/A256KW/A128GCMKW/A192GCMKW/A256GCMKW key-wrapping algorithms - or the experimental A128CTR/A192CTR/A256CTR/chacha20-poly1305 key encryption - to wrap JWE content encryption keys; and (2) it supplies an oct key shorter than the algorithm's key size (128/192/256 bits, 256 for chacha20-poly1305), the worst case being an empty key k="" as returned by JWKFactory::createFromSecret() on an empty string or empty environment variable, which OpenSSL zero-pads to the all-zero key. Limiting factors: the attacker cannot create this condition - it is a property of the application's own key configuration; keys generated at the exact size (e.g. JWKFactory::createOctKey(128), the key:generate:oct command) are not affected; and when no 'alg' is set on the key, the token's 'alg' selects the key size among the registered algorithms. A non-empty but short key only partially weakens security (strength of its own bytes); the full read-and-forge break occurs specifically with an empty key.

Impact

This is a real but conditional cryptographic weakness (CWE-326/CWE-1284), not a broadly wormable flaw. The signals are mixed and should be read together. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 6.3 (Medium): network-reachable and needing no privileges or user interaction, but AT:P explicitly marks a required precondition - namely that the application was configured with an empty or too-short oct key. The GHSA advisory is unusually clear that 'an attacker cannot cause this: the key comes from the application,' so exploitability is gated entirely by a deployment/configuration mistake rather than anything the attacker controls. No EPSS score and no KEV listing were provided, and no public exploit was identified; the only references are the vendor GHSA and VulnCheck advisories, so there is no public exploit identified at time of analysis. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a patch-this-cycle priority rather than an active-exploitation fire drill. Note a reconcilable tension: the vendor rated impact VC:L/VI:L, yet the described worst case (an empty key reduces to the all-zero key, letting anyone both read issued tokens and forge accepted ones) is effectively a full confidentiality-and-authentication break for affected applications - so where the empty-key condition truly holds, real impact is higher than L/L suggests. Net: elevated priority for any shop that builds oct keys from secrets or environment variables, low practical risk for deployments using correctly-sized random keys.

Exploit ScenarioDerived

An application configures JWE key wrapping with A128KW (or A192KW/A256KW/A128GCMKW/A192GCMKW/A256GCMKW, or the experimental AESCTR/chacha20-poly1305) using an oct key built from an empty string or an unset environment variable, so OpenSSL zero-pads it to an all-zero key. A remote attacker who knows (or guesses) the application uses such an empty key can unwrap the content encryption keys under the all-zero key to decrypt the tokens it issues and to forge tokens it will accept. No public exploit code is identified; only vendor (GHSA) and VulnCheck advisory references exist.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 26, 2026

The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCMKW/A192GCMKW/A256GCMKW and the experimental A128CTR/A192CTR/A256CTR and chacha20-poly1305 key-encryption algorithms, so PHP's OpenSSL extension silently zero-pads short keys (CWE-326/CWE-1284). This is a conditional cryptographic weakness rather than a broadly exploitable flaw: the attacker cannot create the condition, which depends entirely on the application's own key configuration. The worst case is an empty key ({"kty":"oct","k":""}, as produced by JWKFactory::createFromSecret() on an empty string or an unset environment variable), where every content encryption key is wrapped under the all-zero key, letting anyone read issued tokens and forge tokens the application accepts; keys generated at the exact required size (JWKFactory::createOctKey(128), key:generate:oct) are unaffected, and a merely short non-empty key only retains the strength of its own bytes. No public exploit code or CISA KEV entry is associated with this issue at time of analysis; vendor patches are available in 3.4.13, 4.0.9, 4.1.11 and 4.2.6.

RemediationAI

Vendor-released patch: upgrade to 3.4.13, 4.0.9, 4.1.11 or 4.2.6 as appropriate for your branch (jwt-encryption 1.2.0 for the split package), per GHSA-4mxj-75j2-j8hc; note that 3.4.13 is the final 3.4 release, so later fixes land only in 4.x. The vendor's stated workaround is to use keys of exactly the algorithm key size generated at random (JWKFactory::createOctKey(128) for A128KW/A128GCMKW, 192 or 256 bits for the others) and to set their 'alg' member, never building an oct key from a text secret or from an environment variable that may be empty. After patching, keys shorter than the required size stop working: re-read any tokens issued with such a key using the key zero-padded to the algorithm size (the value OpenSSL actually used) and then replace the key. Keys of the exact size are unaffected, and longer keys keep working through their first 16, 24 or 32 bytes in the patch releases (deprecated in 4.3.0, refused in 5.0.0). If an application ever ran with an empty key, the vendor advises treating the content of its issued tokens as disclosed and the tokens it accepted as forgeable, and rotating the key immediately.

Affected VersionsENISA

jwt-framework 4.2.0 <4.2.6
jwt-encryption 0 <1.2.0
jwt-experimental 4.1.0 <4.1.11
jwt-encryption-algorithm-aeskw 0 ≤3.2.10
jwt-library 4.1.0 <4.1.11
jwt-encryption-algorithm-aesgcmkw 0 ≤3.2.10
jwt-framework 0 <3.4.13
jwt-framework 4.0.0 <4.0.9
jwt-framework 4.1.0 <4.1.11
jwt-library 4.0.0 <4.0.9
jwt-experimental 4.0.0 <4.0.9
jwt-experimental 0 <3.4.13
jwt-encryption-algorithm-experimental 0 ≤3.2.10
jwt-library 4.2.0 <4.2.6
jwt-experimental 4.2.0 <4.2.6
jwt-library 0 <3.4.13

Affected Packages

euvd jwt_encryption fix: 1.2.0
euvd jwt_encryption_algorithm_aesgcmkw no fix
euvd jwt_encryption_algorithm_aeskw no fix
euvd jwt_encryption_algorithm_experimental no fix
euvd jwt_experimental fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6
euvd jwt_framework fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6
euvd jwt_library fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 7 packages in euvd

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

Technical ContextAI · show details

The flaw lives in the JWE key-management layer of the web-token JWT framework, a PHP (Composer) implementation of RFC 7516/7518 JSON Web Encryption. A128KW/A192KW/A256KW implement AES Key Wrap (RFC 3394) and A128GCMKW/A192GCMKW/A256GCMKW implement AES GCM key wrapping (RFC 7518 §4.7); AESKW::getKey() and AESGCMKW::getKey() return the base64url-decoded 'k' member of the oct JWK verbatim, and PHP's OpenSSL bindings accept any key size by zero-padding it up to 16, 24 or 32 bytes without warning. The same behaviour affects the experimental AESCTR and chacha20-poly1305 key-encryption algorithms. AESKW lost its length check in commit ad03372e (2017-10-28) when the check from spomky-labs/aes-key-wrap was dropped, and AESGCMKW never had one, so every release is affected. KeyChecker does not inspect length and OctAnalyzer only flags keys under 128 bits, so nothing reports the misconfiguration. A longer key is silently truncated to its first 16/24/32 bytes: harmless for random keys but potentially catastrophic for a text secret beginning with a known label. The fix compares the key length with the algorithm's required size and throws 'Invalid key length.' on wrap, while JWEDecrypter/JWELoader move on to the next key in the set. This is a key-strength/improper-input-validation class issue (CWE-326, CWE-1284), closely related to GHSA-jc6j-46g2-xwqc covering the same OpenSSL behaviour in direct encryption.

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

AC:H because the all-zero-key break depends on the app using an empty/short oct key (not attacker-controllable); no privileges or UI needed; reading issued and forging accepted tokens gives high C and I.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/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
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 17:02 EUVD
CVE Published
Nov 26, 2026 - 15:59 cve.org
MEDIUM 6.3

DescriptionCVE.org

web-token jwt-framework before 3.4.13, 4.0.0 before 4.0.9, 4.1.0 before 4.1.11, and 4.2.0 before 4.2.6 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSSL zero-pads short or empty keys. When an application uses an empty key, anyone can unwrap content encryption keys under the all-zero key to read issued tokens and forge accepted ones.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
popular PHP/Composer JWT library, but vulnerable empty/short-key config is non-default
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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.

CVE-2014-0160 HIGH POC
7.5 Apr 07

The (1) TLS and (2) DTLS implementations in OpenSSL 1.0.1 before 1.0.1g do not properly handle Heartbeat Extension packe

CVE-2021-3711 CRITICAL POC
9.8 Aug 24

In order to decrypt SM2 encrypted data an application is expected to call the API function EVP_PKEY_decrypt(). Rated cri

CVE-2014-0195 MEDIUM POC
6.8 Jun 05

The dtls1_reassemble_fragment function in d1_both.c in OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2016-0800 MEDIUM POC
5.9 Mar 01

The SSLv2 protocol, as used in OpenSSL before 1.0.1s and 1.0.2 before 1.0.2g and other products, requires a server to se

CVE-2015-0204 MEDIUM POC
4.3 Jan 09

The ssl3_get_key_exchange function in s3_clnt.c in OpenSSL before 0.9.8zd, 1.0.0 before 1.0.0p, and 1.0.1 before 1.0.1k

CVE-2022-2068 HIGH
7.3 Jun 21

In addition to the c_rehash shell command injection identified in CVE-2022-1292, further circumstances where the c_rehas

CVE-2015-4000 LOW POC
3.7 May 21

The TLS protocol 1.2 and earlier, when a DHE_EXPORT ciphersuite is enabled on a server but not on a client, does not pro

CVE-2014-3566 LOW POC
3.4 Oct 15

The SSL protocol 3.0, as used in OpenSSL through 1.0.1i and other products, uses nondeterministic CBC padding, which mak

CVE-2016-2107 MEDIUM POC
5.9 May 05

The AES-NI implementation in OpenSSL before 1.0.1t and 1.0.2 before 1.0.2h does not consider memory allocation during a

CVE-2015-1793 MEDIUM POC
6.5 Jul 09

The X509_verify_cert function in crypto/x509/x509_vfy.c in OpenSSL 1.0.1n, 1.0.1o, 1.0.2b, and 1.0.2c does not properly

CVE-2022-3602 HIGH
7.5 Nov 01

A buffer overrun can be triggered in X.509 certificate verification, specifically in name constraint checking. Rated hig

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