Nats Jwt Library
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in Nats Jwt Library.
By the Year
In 2026 there have been 14 vulnerabilities in Nats Jwt Library with an average score of 7.4 out of ten. Jwt Library did not have any published security vulnerabilities last year. That is, 14 more vulnerabilities have already been reported in 2026 as compared to last year.
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 14 | 7.38 |
| 2025 | 0 | 0.00 |
| 2024 | 0 | 0.00 |
| 2023 | 0 | 0.00 |
| 2022 | 0 | 0.00 |
| 2021 | 1 | 7.50 |
It may take a day or so for new Jwt Library vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent Nats Jwt Library Security Vulnerabilities
web-token JWT-Framework <3.4.13 <4.0.9 <4.1.11 <4.2.6 RSA OAEP Decrypt Oracle
CVE-2026-137558
6.3 - Medium
- November 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 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.
Missing Cryptographic Step
PHP jwt-framework < 3.4.13 / 4.0.9 / 4.1.11 / 4.2.6 CPU exhaustion via ECDH fallback
CVE-2026-137559
8.2 - High
- November 26, 2026
web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 allow CPU exhaustion because, on PHP without GMP, AbstractECDH falls back to pure PHP curve code that converts unbounded ECDH-ES epk x and y coordinates to big integers before any length check. Unauthenticated attackers who know only the recipient key's curve can send small JWEs with oversized epk coordinates, keeping workers busy for seconds to minutes per token.
Amplification
web-token jwt-framework <3.4.13/4.0.9/4.1.11/4.2.6 RSAKey DoS
CVE-2026-137560
8.2 - High
- November 26, 2026
Web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 contain a denial of service vulnerability in RSAKey, which accepts RSA keys with a modulus and public exponent of unbounded length. Remote attackers can supply a crafted key, such as in the jwk header of a DPoP proof, to force seconds of CPU per PS256/PS384/PS512 verification or RSA encryption, or per any RSA operation when GMP is unavailable.
Resource Exhaustion
jwt-framework/php-jwt Library <4.2.6 JWE Decrypter Token Malleability
CVE-2026-137561
2.3 - Low
- November 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.
Insufficient Verification of Data Authenticity
web-token JWT Framework <4.2.6 AESKW/AESGCMKW key length bypass
CVE-2026-137562
6.3 - Medium
- November 26, 2026
web-token jwt-framework 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 does not check oct key length in the AESKW, AESGCMKW, and experimental AESCTR and chacha20-poly1305 key encryption algorithms, so OpenSSL zero-pads short or empty keys. When an application uses an empty key, anyone can unwrap content encryption keys under the all-zero key to read issued tokens and forge accepted ones.
Inadequate Encryption Strength
web-token jwt-framework <4.2.6 Info Disclosure of JWE Keys in Stack Trace
CVE-2026-137563
5.9 - Medium
- November 26, 2026
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.
Generation of Error Message Containing Sensitive Information
jwt-framework <3.4.13,4.x<4.0.9/4.1.11/4.2.6 dir key length unchecked
CVE-2026-137564
8.2 - High
- November 26, 2026
web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 (and jwt-encryption through 3.2.10) do not check the key length in JWEBuilder and JWEDecrypter for direct (dir) encryption, so undersized keys are zero-padded. Anyone holding a token issued with a half-size AES-CBC-HMAC key can decrypt it, and an empty key also allows forging tokens the decrypter accepts.
Inadequate Encryption Strength
web-token jwt-framework <3.4.13 / 4.0.x <4.0.9: RSAKey timing leak (CRT)
CVE-2026-137579
8.2 - High
- November 26, 2026
Web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6, and jwt-core through 3.2.10, perform unblinded RSA private key operations in RSAKey::exponentiate(), so CRT recombination time reveals whether a decrypted RSA-OAEP, RSA-OAEP-256, or RSA1_5 value is below the prime q. Attackers who can submit JWEs can time rejections of crafted tokens to binary search q, factor the modulus, and decrypt all JWEs encrypted to that key.
Observable Timing Discrepancy
web-token JWT Framework <3.4.13, 4.0.x<4.0.9 DoS via JSONGeneralSerializer
CVE-2026-137580
8.2 - High
- November 26, 2026
web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 parse JSON General serialized JWS tokens in quadratic time because JSONGeneralSerializer::unserialize() adds each signature via JWS::addSignature(), which clones the token. Unauthenticated remote attackers can send large tokens holding thousands of empty signatures to exhaust CPU and occupy PHP workers without any valid key or token.
Inefficient Algorithmic Complexity
web-token JWT <3.4.13, 4.0.x<4.0.9, 4.1.x<4.1.11 DoS via json_decode
CVE-2026-137581
8.2 - High
- November 26, 2026
web-token jwt-framework and jwt-library before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6, and jwt-encryption and jwt-signature through 3.2.10, contain a denial of service vulnerability because the JWS and JWE serializers pass attacker-controlled tokens and protected headers to json_decode() without bounds before verification. Unauthenticated attackers can submit large tokens with colliding header member names or deeply nested arrays to cause quadratic decoding time or fatal memory exhaustion.
Inefficient Algorithmic Complexity
jwt-framework <4.2.6 DoS via unlimited JWE recipients (PHP)
CVE-2026-137582
8.2 - High
- November 26, 2026
web-token jwt-framework before 3.4.13, 4.0.x before 4.0.9, 4.1.x before 4.1.11, and 4.2.x before 4.2.6 allows denial of service because JWELoader and JWSLoader try every recipient or signature of a JSON General serialized token without limiting their number. Unauthenticated attackers can send a small JWE with many empty recipients inheriting a maximal PBES2 p2c value, forcing repeated key derivations that exhaust worker CPU.
Resource Exhaustion
web-token jwt-framework <3.4.12 / 4.0.x<4.0.8 weak ConcatKDF key derivation
CVE-2026-134458
8.2 - High
- November 21, 2026
web-token jwt-framework and jwt-library before 3.4.12, 4.0.x before 4.0.8, 4.1.x before 4.1.10, and 4.2.x before 4.2.4, and jwt-encryption-algorithm-ecdh-es through 3.2.10, have a ConcatKDF::generate() that performs a single SHA-256 round, deriving at most 32 bytes for ECDH-ES and ECDH-SS direct key agreement. Anyone holding a JWE using A256CBC-HS512 can decrypt it under an all-zero AES key, while A192CBC-HS384 content keys have only 64-bit strength.
Missing Cryptographic Step
web-token JWT Framework/Library <3.4.10, <4.0.7, <4.1.7 RSA PKCS#1 v1.5 Padding Oracle
CVE-2026-134459
8.2 - High
- November 21, 2026
web-token jwt-framework and jwt-library before 3.4.10, 4.0.x before 4.0.7, and 4.1.x before 4.1.7 contain a padding oracle in RSACrypt::decryptWithRSA15() because RSA1_5 decryption lacks implicit rejection, so invalid padding, wrong CEK length, and valid padding take measurably different time. Remote attackers can submit adaptively crafted JWE encrypted_key values and measure these timing differences to recover the wrapped content encryption key.
Observable Timing Discrepancy
jwt-framework <3.4.10 / 4.0.04.0.6 / 4.1.04.1.6 PBES2AESKW unwrapKey CPU DoS
CVE-2026-134461
8.7 - High
- November 21, 2026
Web-Token jwt-framework and jwt-library before 3.4.10, 4.0.0 before 4.0.7, and 4.1.0 before 4.1.7 contain an uncontrolled resource consumption vulnerability in PBES2AESKW::unwrapKey(), which passes the attacker-controlled p2c JWE header value to hash_pbkdf2() without an upper bound. Unauthenticated attackers can send a JWE using a PBES2-HS*+A*KW algorithm with a huge p2c iteration count to force lengthy PBKDF2 computations and exhaust server CPU.
Allocation of Resources Without Limits or Throttling
NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control
CVE-2021-3127
7.5 - High
- March 16, 2021
NATS Server 2.x before 2.2.0 and JWT library before 2.0.1 have Incorrect Access Control because Import Token bindings are mishandled.
Improper Handling of Exceptional Conditions
Stay on top of Security Vulnerabilities
Want an email whenever new vulnerabilities are published for Nats Jwt Library or by Nats? Click the Watch button to subscribe.