Skip to main content

web-token jwt-framework EUVDEUVD-2026-136751

| CVE-2026-137563 MEDIUM
Error Message Information Leak (CWE-209)
2026-11-26 VulnCheck
5.9
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Submit crafted JWE to decrypt endpoint
  2. Delivery
    Trigger per-key decryption failure exception
  3. Exploit
    Key material recorded in logged stack-trace arguments
  4. Execution
    Read trace via logs or error tracker
  5. Impact
    Recover decryption key

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Error message sanitization
MITRE ATT&CK

1 technique across 1 tactic: Discovery

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

Exploitation Conditions

Exploitation requires ALL of: (1) the application decrypts JWEs from untrusted senders using web-token/jwt-library, jwt-framework, or jwt-experimental 4.2.1-4.2.5; (2) PHP records exception frame arguments - zend.exception_ignore_args=Off, which is the built-in default (in effect with no php.ini, as in the official Docker images, and in php.ini-development); and (3) the application writes those exception traces to logs or an error tracker readable by people other than its operators. Full-key recovery needs a tool that copies getTrace() arguments (Symfony FlattenException debug page/profiler, or error trackers recording frame arguments); plain text log forms ((string)$e, getTraceAsString(), PHP's Uncaught log line) expose only the first 15 bytes (zend.exception_string_param_max_len default 15), requiring up to 256 trial decryptions to recover a 128-bit key. The dir/AES-KW key and the PBES2 PBKDF2 output are leakable with a token of arbitrary bytes requiring no key; recovering the content-encryption key or ECDH-ES shared secret additionally requires a captured genuine token that was altered. LIMITING FACTORS: not exploitable with zend.exception_ignore_args=On (php.ini-production value), which records nothing; private RSA/EC/OKP keys are never exposed (they travel as JWK objects); and the library returns nothing to the sender, so disclosure depends entirely on who can read the application's own records.

Impact

This is a genuine but moderate-priority information-disclosure issue (CWE-209/CWE-532), not a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:N/VA:N, 5.9 Medium) shows the key signal: high confidentiality impact (decryption keys) gated by an attack requirement (AT:P) and high privileges (PR:H). The AT:P/PR:H combination is consistent with the mechanism - anyone can submit a crafted JWE unauthenticated, but actually reading the leaked key requires access to the application's logs or error tracker, i.e. a second, privileged actor, plus the application must record exception frame arguments and expose those records to non-operators. No EPSS score is provided in the input, so exploitation probability cannot be quantified. The vulnerability is NOT in CISA KEV (status: no public exploit identified at time of analysis - no PoC or exploit reference is present in the input). The vendor decision label is this_month, and a patch is available (4.2.6). Net assessment: a real priority to patch within the normal cycle, but the multi-condition dependency (default-on PHP setting AND readable logs AND, for several paths, a captured genuine token) makes broad, automated exploitation unlikely; treat it as targeted/insider-leaning rather than wormable. Note the nuance: although the JWE can be submitted without any key (AV:N), the actual key recovery depends on log-read access, which is why the vendor rates PR:H rather than PR:N.

Exploit ScenarioDerived

An attacker sends a JWE made of arbitrary bytes (no key required) to an endpoint that decrypts untrusted JWEs with an affected version; the library's per-key decryption failure records the application's dir or AES key-wrapping key as a plain-string argument in the exception stack trace. If the application logs that trace with frame arguments (PHP default zend.exception_ignore_args=Off) to a store readable by others - e.g. a Symfony debug/profiler page or an error tracker like Sentry that copies getTrace() arguments - the full key is exposed; text-only log forms leak the first 15 bytes, after which at most 256 trial decryptions recover a 128-bit key. No public exploit code is identified at time of analysis, though the vendor advisory documents the mechanism in detail.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% 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 PHP packages web-token/jwt-library, web-token/jwt-framework and web-token/jwt-experimental in versions 4.2.1 through 4.2.5 chain per-key decryption failures into exception traces for rejected JWE tokens, and because PHP records stack-frame arguments by default, key material such as the 'dir' key, AES key-wrapping keys, PBES2 PBKDF2 output, ECDH-ES shared secrets and altered-token content-encryption keys can end up in logs and error-tracker records. Applications are exposed only when they decrypt JWEs from untrusted senders, run with zend.exception_ignore_args=Off (the built-in default, in effect with no php.ini, as in official Docker images, and php.ini-development), and let people other than their operators read those traces; plain-string log forms expose only the first 15 bytes of each argument, whereas tools that copy getTrace() arguments (Symfony FlattenException debug pages/profiler, error trackers) receive the whole key. This is a genuine but moderate-priority information-disclosure issue rather than a drop-everything emergency, with no public exploit identified at time of analysis and no confirmed active exploitation (not in CISA KEV); the vector indicates high privileges (PR:H) and high attack complexity, and the fix is released in 4.2.6.

RemediationAI

Vendor-released patch: 4.2.6. Upgrade the affected Composer packages to 4.2.6 or later (for example composer require web-token/jwt-library:^4.2.6, web-token/jwt-framework:^4.2.6 and, where used, web-token/jwt-experimental:^4.2.6), following the advisory at https://github.com/web-token/jwt-framework/security/advisories/GHSA-7hp7-mg7x-hww4; the release keeps exception classes, messages, codes and previous-exception structure unchanged, so only the recorded arguments change. If upgrading is not immediately possible, set zend.exception_ignore_args=On and zend.exception_string_param_max_len=0 as php.ini-production does, which prevents the arguments from being recorded at all, and stop sending exception traces with their arguments to logs or error trackers that people other than the operators can read - noting that this suppresses argument capture for all diagnostics, not just for JWE decryption. Because of the chained-exception exposure, the vendor advises rotating the dir, AES key-wrapping and PBES2 keys after upgrading if such records may have been read; recovery of a 128-bit key from 15-byte string traces only requires up to 256 trial decryptions of one token, so rotation should be treated as necessary rather than precautionary. Teams that ship their own content-encryption algorithm, or that override decryptContent(), verify() or hash(), must add #[\SensitiveParameter] to the key-bearing parameters themselves, since the attribute is not inherited.

Affected VersionsENISA

jwt-library 4.2.1 <4.2.6
jwt-framework 4.2.1 <4.2.6
jwt-experimental 4.2.1 <4.2.6

Affected Packages

euvd jwt_experimental fix: 4.2.6
euvd jwt_framework fix: 4.2.6
euvd jwt_library fix: 4.2.6

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

The flaw is a CWE-209 (generation of error message containing sensitive information) and CWE-532 (insertion of sensitive information into log files) problem in the PHP JWT implementation maintained by web-token. Since release 4.2.1 (commit 7e93ca0d, issue #699), JWELoader attaches the failure met with the last key it tried as the previous exception of the exception it throws for a rejected token, and JWEDecrypter hands every per-key failure to its onError callable. Several of those failing calls receive key material as a plain string - JWEDecrypter::checkCekSize() and decryptPayload(), the decryptContent() paths of AES-GCM, AES-CBC-HMAC and the experimental AES-CCM algorithms, unwrap() in spomky-labs/aes-key-wrap (A*KW, PBES2, ECDH-ES+A*KW, ECDH-SS+A*KW) and ConcatKDF::generate(). When PHP is configured with zend.exception_ignore_args=Off, the engine captures frame arguments in the exception chain, so the dir key, key-wrapping keys, PBKDF2 output and content-encryption keys land in the trace; the amount exposed depends on zend.exception_string_param_max_len (default 15 for string forms). The fix in 4.2.6 marks the key-bearing parameters with PHP 8.2's #[\SensitiveParameter] attribute so the engine records an opaque SensitiveParameterValue instead of the value, rethrows aes-key-wrap failures as a new exception without a previous exception because that dependency does not mark its own parameters, marks the nested-token verification and serializer parameters, and makes JsonConverter::decode() chain a copy of the json_decode() exception so the document is not retained in the trace. The attribute is not inherited, so third-party content-encryption algorithms and overrides of decryptContent(), verify() or hash() must mark their own parameters.

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

Submitting the JWE is network-based, but recovering the leaked key requires read access to application logs/error trackers (PR:H) under non-default readable-logging conditions and sometimes a captured token (AC:H); confidentiality-only impact.

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:H/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
High
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

1
Patch available
Nov 26, 2026 - 17:02 EUVD

DescriptionCVE.org

web-token jwt-framework from 4.2.1 before 4.2.6 contains an information disclosure vulnerability that exposes decryption keys in exception stack traces when JWE tokens are rejected. Attackers can submit crafted JWE tokens so JWELoader and JWEDecrypter record dir, AES key wrapping, PBES2-derived or content encryption keys in logged trace arguments readable by others.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
popular PHP JWT Composer library, one of several alternatives
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.3%
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
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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-2021-3127 HIGH POC
7.5 Mar 16

NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar

CVE-2026-134461 HIGH
8.7 Nov 21

Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-lib

CVE-2026-134459 HIGH
8.2 Nov 21

PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algo

CVE-2026-137582 HIGH
8.2 Nov 26

CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signatur

CVE-2026-137580 HIGH
8.2 Nov 26

Parsing JSON General serialized JWS tokens in web-token/jwt-framework and the underlying jwt-library (before 3.4.13, 4.0

CVE-2026-137559 HIGH
8.2 Nov 26

CPU exhaustion in web-token JWT Framework (jwt-framework and jwt-library) lets an unauthenticated remote attacker keep P

CVE-2026-137579 HIGH
8.2 Nov 26

Unblinded RSA private key operations in web-token/jwt-framework and jwt-library (all versions before 3.4.13, 4.0.9, 4.1.

CVE-2026-137581 HIGH
8.2 Nov 26

Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submi

CVE-2026-137560 HIGH
8.2 Nov 26

Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to cons

CVE-2026-134458 HIGH
8.2 Nov 21

JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt

CVE-2026-137564 HIGH
8.2 Nov 26

Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encrypti

CVE-2026-137558 MEDIUM
6.3 Nov 26

RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA block

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