CVE-2026-35042
HIGH 7.5CVSS 3.1fast-jwt accepts unknown `crit` header extensions (RFC 7515 violation)
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.
- Published
- 6 Apr 2026
- Last modified
- 24 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-345CWE-636
- Also known as
- GHSA-hm7r-c7qw-ghp6
- Sources
- NVDJSONOSV GHSA-hm7r-c7qw-ghp6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nearform | fast-jwtcpe:2.3:a:nearform:fast-jwt:*:*:*:*:*:node.js:*:* |
< 6.2.0 | 6.2.0 |
| OSV | npm | fast-jwt | <= 6.1.0 |
References
- https://github.com/nearform/fast-jwt/security/advisories/GHSA-hm7r-c7qw-ghp6 · Exploit, Mitigation, Vendor Advisory, WEB
- https://www.rfc-editor.org/rfc/rfc7515.html#section-4.1.11 · Technical Description, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-35042 · ADVISORY
- https://github.com/advisories/GHSA-9ggr-2464-2j32 · ADVISORY
- https://github.com/nearform/fast-jwt · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 6 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Apr 2026)