Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCapture target RSA-OAEP JWE ciphertext
-
DeliveryObtain recipient's public key
-
ExploitSubmit crafted multi-block encrypted keys with AES-CBC-HMAC enc
-
ExecutionObserve decryption success/failure oracle
-
PersistRecover CEK byte by byte
-
ImpactDecrypt captured JWE payload
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Cryptographic step completeness
|
| Exploitation Conditions | Exploitation requires a specific combination rather than a default-configuration remote compromise: (1) the application decrypts JWEs using RSA-OAEP or RSA-OAEP-256 (or the experimental RSA-OAEP-384/512); (2) it also accepts an AES-CBC-HMAC content-encryption algorithm whose HMAC key is at least the captured CEK length minus one byte - A256CBC-HS512 for 32-byte CEKs (as used by A256GCM/A128CBC-HS256), or A128CBC-HS256/A192CBC-HS384 for 16- or 24-byte CEKs; (3) the attacker possesses the recipient's public key; (4) the attacker has a copy of the target JWE; and (5) the application exposes a way to distinguish a decrypted token from a rejected one (a decryption oracle). Key limiting factors per the advisory: tokens encrypted with A192CBC-HS384 or A256CBC-HS512 are out of reach; applications accepting only AES-GCM are exposed to encrypted-key malleability and the per-block CPU cost (a DoS-like amplification) but NOT to CEK recovery; the RSA1_5 path is not affected; and recovery is query-intensive (about 65,536 tokens per byte, roughly a million for a 32-byte CEK). |
| Impact | This is a genuine but conditional cryptographic weakness rather than a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 6.3 (medium) with only low confidentiality impact (VC:L) and no integrity or availability impact, which is consistent with the mechanism: an attacker recovers the content-encryption key of a JWE they have already captured, not arbitrary data, and only one captured token at a time. The AT:P (attack requirements present) is well-justified - exploitation is not against a default configuration but requires the application to accept an AES-CBC-HMAC 'enc' algorithm alongside RSA-OAEP, plus a usable decryption success/failure oracle and the recipient's public key. No EPSS score, no CISA KEV entry, and no SSVC automatable/technical-impact fields were provided in the input, so probabilistic and decision-framework signals cannot be weighed here; the only priority signal is the vuln.today 'this_month' label, which aligns with a medium-severity, config-dependent confidentiality flaw. The confidentiality impact rated 'low' understates the consequence for a successfully targeted token (the full plaintext of the captured JWE is recovered), but the scope is narrow and the attack needs roughly a million oracle queries per 32-byte CEK, so it reflects targeted, not opportunistic, exploitation. Net: schedule the patch within normal maintenance windows and prioritize it for deployments that decrypt RSA-OAEP JWEs while also accepting AES-CBC-HMAC content encryption. |
| Exploit ScenarioDerived | An attacker who has intercepted a confidential JWE (for example an A256GCM token) and holds the recipient's public key submits forged tokens whose RSA Encrypted Key concatenates attacker-chosen RSA blocks with the captured encrypted key, using an accepted AES-CBC-HMAC algorithm such as A256CBC-HS512. Because AES-CBC-HMAC checks the HMAC tag first and the attacker controls all but one byte of the HMAC key, a decrypt-success/failure signal leaks the captured CEK one byte at a time (about a million tokens for a 32-byte CEK), after which the captured JWE is fully decrypted. No verified working exploit code is referenced in the input; the technique is detailed publicly in the vendor GHSA advisory, and the low-complexity (AC:L) network vector means the main cost is query volume, not technical difficulty. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
RSA-OAEP decryption in web-token/jwt-framework and jwt-library accepts a JWE Encrypted Key composed of several RSA blocks instead of the single RSAES-OAEP ciphertext the standard requires, which turns the library into a decryption oracle that unauthenticated remote attackers holding the recipient's public key and a captured JWE can use to recover that token's content encryption key byte by byte. Affected deployments must decrypt with RSA-OAEP, RSA-OAEP-256 (or the experimental RSA-OAEP-384/512) and also accept an AES-CBC-HMAC content-encryption algorithm of sufficient HMAC key length, and must expose a signal that distinguishes a decrypted token from a rejected one; applications that accept only AES-GCM are exposed only to encrypted-key malleability and amplified per-block CPU cost, not to key recovery. Recovery is query-intensive rather than trivial - about 65,536 crafted tokens per recovered byte and roughly a million for a 32-byte CEK - so this is a conditional cryptographic weakness carrying an information-disclosure impact, not a default-configuration remote compromise; no public exploit code or confirmed active exploitation was identified at time of analysis, and vendor fixes are available for every affected branch.
RemediationAI
Vendor-released patch: jwt-library and jwt-framework 3.4.13, 4.0.9, 4.1.11 and 4.2.6, plus jwt-encryption 2.0.4. Upgrade to the fixed build for the branch you run; note that 3.4.13 is the final release of the 3.x line, which has reached end of life, so 3.x users should plan the move to 4.x. After the fix, RSA-OAEP decryption handles a single block of the modulus length and an encrypted key longer than the modulus is rejected before any private-key operation with the same RuntimeException used for other invalid encrypted keys, and encryption no longer splits the CEK across blocks. Three compatibility changes apply: a CEK that does not fit in one RSA-OAEP block now raises InvalidArgumentException("Message too long") on encryption, which only occurs with keys shorter than 2048 bits (for example RSA-OAEP-256 with a 1024-bit key and A256CBC-HS512, where 62 bytes fit and 64 are needed) - tokens previously produced that way had multi-block encrypted keys that other implementations do not decrypt and that are no longer decrypted either; an encrypted key shorter than the modulus is still decrypted (left-padded with zero bytes), though it is deprecated in 4.3.0 and will be rejected in 5.0.0; and an empty encrypted key is now rejected with a RuntimeException instead of a PHP warning followed by a TypeError. If upgrade must be deferred, the vendor's documented workarounds are to stop accepting AES-CBC-HMAC content-encryption algorithms alongside RSA-OAEP for decryption, and/or to reject any token whose encrypted key is longer than the RSA modulus before decrypting it - either removes the key-recovery path - and to limit the size of accepted tokens to bound the per-block private-key cost; both come at the price of refusing some non-conforming or legacy senders, and neither addresses encrypted-key malleability against replay caches. The advisory is at https://github.com/web-token/jwt-framework/security/advisories/GHSA-wwcr-82mc-w3pw.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 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 sits in RSACrypt::decryptWithRSAOAEP(), the routine behind the RSA-OAEP and RSA-OAEP-256 key-encryption algorithms (plus the experimental RSA-OAEP-384 and RSA-OAEP-512) used to unwrap the CEK of a JWE. RSAES-OAEP decryption is defined in RFC 8017 section 7.1.2 (step 1.b) to take exactly one ciphertext of the modulus length, and the library's own RSA1_5 code path already enforced that constraint. Instead, this routine split the supplied Encrypted Key into modulus-length blocks, decrypted each with the private key and concatenated the plaintexts, validating only the total length against the CEK size implied by the enc header. That is CWE-325 (Missing Cryptographic Step): the missing length check is precisely the step that binds one JWE to one private-key operation. The consequence is exploitable because of how AES-CBC-HMAC content encryption (RFC 7518 section 5.2.2.1) authenticates: it uses the first half of the CEK as the HMAC key and verifies the tag before doing anything else. An attacker who can choose all but one byte of that HMAC key - by placing the captured encrypted key among crafted blocks that decrypt to chosen bytes - learns the remaining byte from the accepted/rejected signal, iterates, and finally decrypts the captured payload. Two secondary effects follow from the same loop: extra blocks can be appended to a valid JWE without rejection, defeating replay caches or deny lists keyed on the serialized token, and each block costs one private-key operation, so oversized tokens amplify CPU cost (the advisory reports 1.3 s for a 342 kB token with GMP and 1.8 s for a 7 kB token with BCMath, versus 2 ms and 90 ms for genuine tokens). The advisory cross-references GHSA-5739-39v2-5754, the earlier RSA1_5 decryption oracle. The CPE data shows four coordinated packages - jwt-library, jwt-framework, jwt-encryption and jwt-encryption-algorithm-rsa - all carrying the same loop, which dates from the initial commit.
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:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H captures the required non-default AES-CBC-HMAC acceptance, decryption oracle, captured token, and ~1M queries; only captured-JWE confidentiality (C:L) is affected.
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 contain a decryption oracle in RSACrypt::decryptWithRSAOAEP(), which accepts a JWE Encrypted Key made of multiple RSA blocks instead of a single RSAES-OAEP ciphertext. Attackers holding the recipient's public key can embed a captured encrypted key among crafted blocks and, using an accepted AES-CBC-HMAC algorithm and a decryption success signal, recover its CEK byte by byte to decrypt the captured JWE.
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
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
The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCM
EUVD-2026-136756
NVD
CVE.org
EPSS
GitHub
Exploit-DB