Security mailing lists by PureSourceCode

CVE-2026-35041

MEDIUM 6.5CVSS 3.1

fast-jwt has a ReDoS when using RegExp in allowed* leading to CPU exhaustion during token verification

fast-jwt provides fast JSON Web Token (JWT) implementation. From 5.0.0 to 6.2.0, 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 vulnerability is fixed in 6.2.1.

Published
9 Apr 2026
Last modified
26 Oct 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-1333
Also known as
GHSA-cjw9-ghj4-fwxf
Sources
NVDJSONOSV GHSA-cjw9-ghj4-fwxfJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 MEDIUM 4.2 CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD nearform fast-jwt
cpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:*
>= 5.0.0, < 6.2.1 6.2.1
OSV npm fast-jwt >= 5.0.0, < 6.2.1 6.2.1

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 Apr 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 9 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.