A denial-of-service condition exists in fast-jwt when the allowedAud verification option is configured using a regular expression.
Because the aud claim is attacker-controlled and the library evaluates it against the supplied RegExp, a crafted JWT can trigger catastrophic backtracking in the JavaScript regex engine, resulting in significant CPU consumption during verification.
This occurs with a validly signed JWT, making the issue exploitable in authenticated contexts such as:
API gateways
authentication middleware
service-to-service communication
OAuth / OIDC token validation pipelines
Library: fast-jwt
Version tested: 6.1.0
Runtime: Node.js v24.13.1
Feature: claim validation using allowedAud: RegExp
CPU exhaustion / Denial of Service
A crafted JWT causes verification to take multiple seconds per request due to catastrophic regex backtracking.
This is sufficient to:
block Node.js event loop threads
degrade API throughput
cause cascading service failures
increase serverless execution costs
saturate authentication infrastructure
The library allows regular expressions in claim validation:
<div class="h-full min-h-0How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is high, an attacker needs administrative privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
CVSS metrics in full
The score comes from this vector:
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H
- Attack vector: Network — reachable from anywhere that can route to the service.
- Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
- Privileges required: High — administrative rights are needed first.
- User interaction: Required — someone has to click, open or visit something.
- Scope: Unchanged — the damage stays inside the vulnerable component.
- Confidentiality impact: None.
- Integrity impact: None.
- Availability impact: High — total loss, or loss the attacker controls.
Weakness class
CVE-2026-35041 is classified as CWE-1333: Inefficient Regular Expression Complexity. A regular expression backtracks catastrophically on crafted input, consuming CPU out of proportion to input size.
Affected software
CVE-2026-35041 is recorded against 1 package.
- fast-jwt
Timeline and source
Published on 9 April 2026 and last revised on 17 June 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.
References
github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)Other advisories for this package
fast-jwt has other advisories on record. If you are patching this one, these are worth checking on the same host:
- CVE-2026-44351 (9.5 Critical, published 6 May 2026)
- CVE-2026-35040 (5.3 Medium, published 9 Apr 2026)
- CVE-2026-35042 (8.0 High, published 3 Apr 2026)
- CVE-2026-35039 (9.5 Critical, published 3 Apr 2026)
- CVE-2026-34950 (9.5 Critical, published 2 Apr 2026)
- CVE-2025-30144 (published 19 Mar 2025)
- CVE-2023-48223 (5.9 Medium, published 20 Nov 2023)
Same weakness in other software
These advisories are the same class of weakness (CWE-1333: Inefficient Regular Expression Complexity) in other software:
- CVE-2026-23985 (5.0 Medium, published 17 Aug 2026)
- CVE-2026-70489 (published 10 Aug 2026)
- CVE-2026-67422 (8.0 High, published 7 Aug 2026)
- CVE-2026-66062 (5.3 Medium, published 7 Aug 2026)
- CVE-2026-69207 (5.3 Medium, published 7 Aug 2026)
- CVE-2026-68749 (7.5 High, published 6 Aug 2026)
- CVE-2026-71190 (published 5 Aug 2026)
- CVE-2026-70493 (6.5 Medium, published 4 Aug 2026)
Details
Severity MEDIUMCVSS Score 4.2CVSS VectorCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:HCWE CWE-1333Public Exploit ⚠️ YesSource OSVPublished 2026-04-09Updated 2026-08-20Modified 2026-06-17Affected Packages
Software From version Fixed in fast-jwt — — References
Similar Threats
- Critical CVE-2026-44351
- Medium CVE-2026-35040
- Medium CVE-2026-35041
- High CVE-2026-35042
- Critical CVE-2026-34950
Exploit Protection
Are you running fast-jwt?
CVE-2026-35041 carries CVSS 4.2 Medium rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2026-35041 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.
Stay up to date with the latest from Boteraser.
We use cookies to improve your experience on our site. By using our site, you consent to cookies.
Manage your cookie preferences below:
Essential cookies enable basic functions and are necessary for the proper function of the website.
CloudFlare provides web performance and security solutions, enhancing site speed and protecting against threats.
Service URL: developers.cloudflare.com (opens in a new window)
These cookies are needed for adding comments on this website.
These cookies are used for managing login functionality on this website.
Statistics cookies collect information anonymously. This information helps us understand how visitors use our website.
Google Analytics is a powerful tool that tracks and analyzes website traffic for informed marketing decisions.
Service URL: policies.google.com (opens in a new window)
You can find more information in our Cookie Policy and Privacy Policy.