CVE-2026-35042

fast-jwt accepts unknown `crit` header extensions (RFC 7515 §4.1.11 MUST violation)

State
Published
Severity
7.5 High
Published
Apr 6, 2026
Updated
Apr 7, 2026
Reserved
Mar 31, 2026

Read the record on cve.org

Description

fast-jwt provides fast JSON Web Token (JWT) implementation. In 6.1.0 and earlier, fast-jwt does not validate the crit (Critical) Header Parameter defined in RFC 7515 §4.1.11. When a JWS token contains a crit array listing extensions that fast-jwt does not understand, the library accepts the token instead of rejecting it. This violates the MUST requirement in the RFC.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NGitHub_M

Weaknesses

  • CWE-345 Insufficient Verification of Data Authenticity
  • CWE-636 Not Failing Securely ('Failing Open')

Affected Products

ProductVersions
fast-jwtnearform
  • <= 6.1.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.