Skip to content

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

HighCVSS 7.5 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
nearform fast-jwt < 6.2.0; = <= 6.1.0 6.2.0 Fixed
npm fast-jwt(npm) <= 6.1.0 after 6.1.0 Fixed

Affected products

ProductAffected versionsFixed in
nearform fast-jwt = <= 6.1.0 No fix listed
npm fast-jwt(npm) <= 6.1.0 No fix listed
nearform fast-jwt < 6.2.0 6.2.0

References