Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted JWE to decrypt endpoint
-
DeliveryTrigger per-key decryption failure exception
-
ExploitKey material recorded in logged stack-trace arguments
-
ExecutionRead trace via logs or error tracker
-
ImpactRecover 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 - |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Jwt Library
View allNATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings ar
Unauthenticated remote attackers can exhaust server CPU in PHP applications using the web-token/jwt-framework or jwt-lib
PHP applications using web-token/jwt-framework or its jwt-library component that register the RSA1_5 key-encryption algo
CPU-exhaustion denial of service in web-token/jwt-framework and the related jwt-library, jwt-encryption and jwt-signatur
Parsing JSON General serialized JWS tokens in web-token/jwt-framework and the underlying jwt-library (before 3.4.13, 4.0
CPU exhaustion in web-token JWT Framework (jwt-framework and jwt-library) lets an unauthenticated remote attacker keep P
Unblinded RSA private key operations in web-token/jwt-framework and jwt-library (all versions before 3.4.13, 4.0.9, 4.1.
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submi
Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to cons
JWE tokens produced with ECDH-ES (or the non-registered ECDH-SS) direct key agreement and A256CBC-HS512 in web-token/jwt
Confidentiality loss in web-token/jwt-framework and the underlying jwt-library: JWE tokens produced with direct encrypti
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA block
EUVD-2026-136751
NVD
CVE.org
EPSS
GitHub
Exploit-DB