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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-hm7r-c7qw-ghp6 exploit mitigation vendor-advisory
- https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.11 technical-description
- github.com vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product