CVE-2026-137561 in jwt-encryptioninfo

Summary

by MITRE • 11/26/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/26/2026

The vulnerability identified in Web-Token jwt-framework and associated libraries represents a critical cryptographic implementation flaw rooted in the handling of JSON Web Encryption (JWE) tokens. Specifically, this issue affects versions prior to 3.4.13 for the main framework, as well as specific minor releases within the 4.x series including 4.0.9, 4.1.11, and 4.2.6. Additionally, the jwt-encryption component is vulnerable in all versions up through 3.2.10. The core technical deficiency lies within the JWEDecrypter class, which fails to enforce strict validation on the JWE Encrypted Key field when using direct encryption algorithms such as dir, ECDH-ES (Elliptic Curve Diffie-Hellman Ephemeral Static), and ECDH-SS (Elliptic Curve Diffie-Hellman Synchronous). In these specific cryptographic modes, the authentication tag is designed to cover only the ciphertext and associated data, but not necessarily the encrypted key itself in a manner that prevents manipulation. This oversight allows an attacker who possesses a valid token to modify the Encrypted Key portion with arbitrary bytes while maintaining the structural integrity required for decryption.

From a technical perspective, this malleability flaw exploits the mathematical properties of the underlying elliptic curve cryptography and the specific way these libraries process key agreement parameters. Because the authentication tag does not encompass the encrypted key material in the affected algorithms, an attacker can alter this segment without invalidating the signature or MAC check that follows it during decryption. Consequently, for any single valid token held by an adversary, they can generate unlimited distinct variations of that token string. Each variation will successfully decrypt to reveal the same underlying payload because the modification occurs outside the scope of the integrity protection mechanism. This behavior fundamentally breaks the assumption that a JWE token is immutable once issued and signed or authenticated under these specific algorithmic configurations.

The operational impact of this vulnerability is severe, particularly in systems relying on tokens for session management, authentication, or authorization decisions. The primary consequence is the bypassing of replay caches, single-use registries, and revocation deny-lists that are keyed specifically on the token string itself. In many security architectures, a unique token identifier serves as the key to track whether a token has already been used (preventing replays) or if it has been explicitly revoked by an administrator. Since the attacker can derive multiple distinct strings from one original valid token, they can present different variations of that same logical credential to bypass these tracking mechanisms. For instance, if a system checks its database for a specific token string before processing a request, the attacker can simply rotate through their derived variants until finding one not yet recorded in the cache or deny-list, effectively rendering these security controls useless against this specific attack vector.

This vulnerability aligns with CWE-345 Insufficient Verification of Data Authenticity and CWE-295 Improper Certificate Validation concepts within the context of cryptographic implementation. It also maps to MITRE ATT&CK techniques related to Token Manipulation, specifically T1136 which covers creating fake credentials or modifying existing ones to maintain access without detection. The flaw undermines the integrity guarantees expected from JWE implementations and highlights a critical gap in how certain libraries handle key material validation during the decryption process.

To mitigate this risk, organizations must immediately upgrade their JWT dependencies to patched versions that address this malleability issue. For Web-Token jwt-framework, this means upgrading to version 3.4.13 or later for the legacy branch and ensuring that any usage of the 4.x series is updated to at least 4.0.9, 4.1.11, or 4.2.6 depending on the specific component in use. Similarly, jwt-encryption users must update to version 3.2.11 or higher where this validation logic has been corrected. Beyond software updates, developers should review their authentication flows to ensure that token binding is not solely dependent on the opaque string representation of the JWT but also incorporates additional contextual factors such as IP addresses or user agents where appropriate for defense-in-depth. Furthermore, security teams should audit configurations using dir, ECDH-ES, and ECDH-SS algorithms to verify they are operating with patched libraries before these tokens are deployed in production environments handling sensitive data or critical access controls.

Responsible

VulnCheck

Reservation

11/26/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.00166

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!