Skip to main content

web-token JWT Framework EUVDEUVD-2026-136756

| CVE-2026-137558 MEDIUM
Missing Cryptographic Step (CWE-325)
2026-11-26 VulnCheck
6.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Capture target RSA-OAEP JWE ciphertext
  2. Delivery
    Obtain recipient's public key
  3. Exploit
    Submit crafted multi-block encrypted keys with AES-CBC-HMAC enc
  4. Execution
    Observe decryption success/failure oracle
  5. Persist
    Recover CEK byte by byte
  6. Impact
    Decrypt 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.

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

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

jwt-library 0 <3.4.13
jwt-encryption-algorithm-rsa 0 ≤3.2.10
jwt-library 4.2.0 <4.2.6
jwt-framework 4.0.0 <4.0.9
jwt-encryption 0 <2.0.4
jwt-framework 4.1.0 <4.1.11
jwt-framework 0 <3.4.13
jwt-library 4.1.0 <4.1.11
jwt-library 4.0.0 <4.0.9
jwt-framework 4.2.0 <4.2.6

Affected Packages

euvd jwt_encryption fix: 2.0.4
euvd jwt_encryption_algorithm_rsa no fix
euvd jwt_framework fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6
euvd jwt_library fix: 3.4.13, 4.0.9, 4.1.11, 4.2.6

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

Vendor (VulnCheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/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
None
User Interaction
None
Vulnerable system: Confidentiality
Low
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 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

EPSS Score
0.3%
Top 89% exploitable
Prevalence
Medium
popular PHP/Composer JWT library, common but config- and algorithm-dependent exposure
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
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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-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-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-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-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-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-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-137562 MEDIUM
6.3 Nov 26

The web-token/jwt-framework PHP library fails to validate the length of oct keys used with A128KW/A192KW/A256KW, A128GCM

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