CVE-2025-30144

MEDIUM

fast-jwt < 5.0.6 - Authentication Bypass via Issuer Claim Spoofing

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2025-30144. PoCs published by tibrn.

AI-analyzed exploit summary The PoC demonstrates an authentication bypass in the `fast-jwt` library due to improper validation of the `iss` claim, allowing an array of strings to bypass issuer validation. This enables attackers to forge JWTs with malicious issuers alongside legitimate ones, bypassing security checks.

Description

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 5.0.6, the fast-jwt library does not properly validate the iss claim based on the RFC 7519. The iss (issuer) claim validation within the fast-jwt library permits an array of strings as a valid iss value. This design flaw enables a potential attack where a malicious actor crafts a JWT with an iss claim structured as ['https://attacker-domain/', 'https://valid-iss']. Due to the permissive validation, the JWT will be deemed valid. Furthermore, if the application relies on external libraries like get-jwks that do not independently validate the iss claim, the attacker can leverage this vulnerability to forge a JWT that will be accepted by the victim application. Essentially, the attacker can insert their own domain into the iss array, alongside the legitimate issuer, and bypass the intended security checks. This issue is fixed in 5.0.6.

Exploits (1)

nomisec WORKING POC
by tibrn · poc
https://github.com/tibrn/CVE-2025-30144

The PoC demonstrates an authentication bypass in the `fast-jwt` library due to improper validation of the `iss` claim, allowing an array of strings to bypass issuer validation. This enables attackers to forge JWTs with malicious issuers alongside legitimate ones, bypassing security checks.

Classification
Working Poc 100%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: fast-jwt library (version not specified)
No auth needed
Prerequisites: Access to a vulnerable application using `fast-jwt` for JWT validation · Ability to craft and send malicious JWTs
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Scores

CVSS v3 6.5
EPSS 0.0213
EPSS Percentile 84.6%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-290 CWE-345
Status published
Products (2)
nearform/fast-jwt < 5.0.6
npm/fast-jwt 0 - 5.0.6npm
Published Mar 19, 2025
Tracked Since Feb 18, 2026