Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain one valid direct-mode JWE token
-
ExploitOverwrite empty Encrypted Key with arbitrary bytes
-
ExecutionDerive many variant strings that still decrypt
-
ImpactBypass replay cache, single-use registry or revocation deny-list
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V15 - Secure Coding and Architecture Data authenticity verification
|
| Exploitation Conditions | Exploitation requires ALL of the following, per the advisory: (1) the application decrypts JWEs whose key-management alg is dir, ECDH-ES or ECDH-SS (dir and ECDH-ES are reachable via JWELoader, NestedTokenLoader and the bundle decrypter services; non-registered ECDH-SS only via JWEDecrypter called with a sender key); and (2) the application identifies accepted tokens by their serialized string or a hash of it - in a replay cache, single-use registry or revocation deny-list - rather than by a claim such as jti; and (3) the attacker already possesses one valid token (PR:L). LIMITING factors: key-encryption and key-wrapping algorithms (RSA-OAEP, RSA1_5, A128KW-A256KW, A*GCMKW, PBES2-*, ECDH-ES+A*KW, ECDH-SS+A*KW) are NOT affected because a different encrypted key yields a different content encryption key and the token is rejected; tokens produced by the library itself (which leave the encrypted key empty) are unaffected; and deployments that key their anti-replay/revocation logic on jti rather than the token string are not exploitable even when using direct modes. |
| Impact | This is a low-severity, low-real-risk issue despite the authentication-bypass framing. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) scores only 2.3, and the impact is narrow: VC:N and VA:N mean nothing is disclosed and nothing is taken down; only VI:L (minor integrity) applies, reflecting that the plaintext and protected header cannot be altered - the advisory explicitly states confidentiality and integrity of the content are not at stake. PR:L is honest: an attacker must already hold one legitimately issued direct-mode JWE token before deriving variants. The vuln.today Decision label is 'monitor', consistent with a non-urgent finding. No KEV listing and no EPSS score were supplied; exploitation status is 'no public exploit identified at time of analysis' - the VulnCheck entry is an advisory reference, not verified working exploit code, so POC availability should not be inferred. The signals are mutually consistent rather than conflicting: this is a genuine correctness/malleability defect that matters only to a specific class of deployments (string-keyed replay/revocation controls), not a broadly exploitable authentication compromise. Treat as a hygiene patch, not an emergency. |
| Exploit ScenarioDerived | An attacker who legitimately holds a single JWE token issued with the dir, ECDH-ES or ECDH-SS algorithm fills the JWE Encrypted Key - which should be empty and is not covered by the authentication tag - with arbitrary bytes, producing unlimited distinct token strings that all still decrypt to the identical header and plaintext. Where the application enforces single-use, replay protection, or revocation by the token string (or its hash) rather than by a claim such as jti, each mutated variant is treated as a brand-new token, so a token meant to be one-time or revoked can be reused. No public exploit code was identified, though the technique is fully described in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Token malleability in web-token/jwt-framework, jwt-library and jwt-encryption lets anyone holding a single valid JWE mint unlimited additional token strings that the library still decrypts, whenever the key-management algorithm is dir, ECDH-ES or ECDH-SS, because JWEDecrypter never enforced that the JWE Encrypted Key is the empty octet sequence and the authentication tag does not cover those bytes. Nothing is disclosed and the plaintext cannot be altered; the practical impact falls on applications that recognise a token by its serialized string or a hash of it, so replay caches, single-use registries and revocation deny-lists treat every variant as a fresh token. Affected releases are jwt-framework and jwt-library before 3.4.13, 4.0.0 to 4.0.8, 4.1.0 to 4.1.10 and 4.2.0 to 4.2.5, plus jwt-encryption through 3.2.10; vendor fixes ship in 3.4.13, 4.0.9, 4.1.11 and 4.2.6, and no public exploit code or active exploitation was identified at time of analysis (priority label: monitor).
RemediationAI
Vendor-released patches fix the issue in jwt-framework and jwt-library 3.4.13, 4.0.9, 4.1.11 and 4.2.6 - upgrade to the build covering your major branch, and note that 3.4.13 is the final release of the 3.4 line, so plan a move to 4.x to keep receiving fixes; jwt-encryption consumers should track the corresponding jwt-library release. The patch makes JWEDecrypter reject a non-empty encrypted key when the algorithm is a direct encryption or direct key agreement, so decryptUsingKey() and decryptUsingKeySet() return false and JWELoader throws its usual exception. Compatibility side effect: tokens produced by the library are unchanged, and an encrypted_key member equal to "" in the JSON serializations is still accepted, but direct-mode tokens whose encrypted key was filled by a non-conforming third-party producer will now be rejected. If you cannot upgrade immediately, the advisory offers two workarounds: identify tokens in replay caches, single-use registries and deny-lists by a claim such as jti instead of the serialized token string (no loss of confidentiality or integrity either way), or, after unserializing and before decrypting, reject any token whose alg is dir, ECDH-ES or ECDH-SS and whose getRecipient($index)->getEncryptedKey() is neither null nor '' - the trade-off being that this custom guard must be applied on every decryption path, including JWELoader, NestedTokenLoader and direct JWEDecrypter calls with a sender key.
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
JSON Web Encryption (RFC 7516) with direct key-management algorithms - Direct Encryption with a Shared Symmetric Key (dir, RFC 7518 §4.5) and Direct Key Agreement (ECDH-ES, §4.6) - carries no wrapped key inside the token, so §5.2 step 10 requires the JWE Encrypted Key to be the empty octet sequence; the same holds for the non-registered ECDH-SS variant. JWEDecrypter in web-token skipped that check for these modes, and because the AEAD authentication tag is computed over the ciphertext and protected header rather than the encrypted key, arbitrary bytes appended to the encrypted_key member leave the header and plaintext intact and decryption still succeeds in compact, JSON flattened and JSON general serializations, with the injected bytes surfaced to the application via Recipient::getEncryptedKey(). This is CWE-345 (insufficient verification of data authenticity): the root cause is a missing input-validation step that dates from the library's first release, giving a many-to-one mapping from token strings to a single accepted protected content. The independent assessment rates this AV:N/AC:L/PR:L/UI:N with C:N/I:L/A:N, i.e. an attacker must already hold a valid token and gains only the ability to produce unrecognised-but-accepted variants. Key-encryption and key-wrapping algorithms (RSA-OAEP, RSA-OAEP-256, RSA1_5, A128KW-A256KW, A128GCMKW-A256GCMKW, PBES2-*, ECDH-ES+A*KW, ECDH-SS+A*KW) are structurally immune because a substituted encrypted key yields a different content encryption key and the token is rejected, and JWEBuilder never emits a non-empty encrypted key for direct algorithms. Exploitation therefore depends on three conditions holding together: the application decrypts dir/ECDH-ES/ECDH-SS JWEs (dir and ECDH-ES reachable through JWELoader, NestedTokenLoader and the bundle's decrypter services; ECDH-SS only through JWEDecrypter called with a sender key), it keys its anti-replay or revocation logic on the serialized token string or a hash of it rather than a claim such as jti, and the attacker has captured one valid token.
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:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
Attacker must already hold a valid token (PR:L) and the trigger is trivial byte substitution (AC:L); only token-string replay/revocation integrity is affected (I:L), with no confidentiality or availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
Web-Token jwt-framework and jwt-library 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, and jwt-encryption through 3.2.10, contain a token malleability flaw because JWEDecrypter does not reject a non-empty JWE Encrypted Key with the dir, ECDH-ES and ECDH-SS algorithms, which the authentication tag does not cover. Attackers holding one token can fill the Encrypted Key with arbitrary bytes to derive unlimited distinct token strings that still decrypt, bypassing replay caches, single-use registries or revocation deny-lists keyed on the token string.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
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
CPU exhaustion in web-token JWT Framework (jwt-framework and jwt-library) lets an unauthenticated remote attacker keep P
Unauthenticated CPU and memory exhaustion in web-token/jwt-framework and web-token/jwt-library lets anyone who can submi
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
Unbounded RSA key parameters in web-token/jwt-framework and jwt-library allow a remote, unauthenticated attacker to cons
Unblinded RSA private key operations in web-token/jwt-framework and jwt-library (all versions before 3.4.13, 4.0.9, 4.1.
Parsing JSON General serialized JWS tokens in web-token/jwt-framework and the underlying jwt-library (before 3.4.13, 4.0
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA block
EUVD-2026-136753
NVD
CVE.org
EPSS
GitHub
Exploit-DB