CVE & CISA-KEV Catalog

CVE-2026-35040

MEDIUM
5.3
CVSS v3
NVD

Description

fast-jwt provides fast JSON Web Token (JWT) implementation. Prior to 6.2.1, using certain modifiers on RegExp objects in the allowedAud, allowedIss, allowedSub, allowedJti, or allowedNonce options in verify functions can cause certain unintended behaviours. This is because some modifiers are stateful and will cause failures in every second verification attempt regardless of the validity of the token provided. Such modifiers are /g (global matching) and /y (sticky matching). This does NOT allow invalid tokens to be accepted, only for valid tokens to be improperly rejected in some configurations. Instead it causes 50% of valid authentication requests to fail in an alternating pattern. This vulnerability is fixed in 6.2.1.

How to fix

Remediation Available
fast-jwtNVD
Affected:< 6.2.1Fixed in:6.2.1CVE-2026-35040derived from NVD

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityLow

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploit Intelligence

0.38%probability of exploitation in 30 days
30thpercentile

Low risk: more likely to be exploited than 30% of all known CVEs.

References

Exploit1
Release Notes1
Embed a live status badge for CVE-2026-35040
CVE-2026-35040 severity badge

Markdown

[![CVE-2026-35040](https://tridentstack.com/cve/badge/CVE-2026-35040.svg)](https://tridentstack.com/cve/CVE-2026-35040)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-35040"><img src="https://tridentstack.com/cve/badge/CVE-2026-35040.svg" alt="CVE-2026-35040"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-17.