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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-03T22:01:25.000Z
- Modified: 2026-10-24T13:10:00.147Z
- Also known as: GHSA-hm7r-c7qw-ghp6
- Weaknesses: CWE-345, CWE-636
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nearform fast-jwt: <= 6.1.0; before 6.2.0
- fast-jwt (npm): up to 6.1.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## 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)

## Sources

- CVE List: [CVE-2026-35042](https://www.cve.org/CVERecord?id=CVE-2026-35042), CVE Terms of Use, modified 2026-04-07
- GitHub Advisory Database: [GHSA-hm7r-c7qw-ghp6](https://github.com/advisories/GHSA-hm7r-c7qw-ghp6), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-35042](https://nvd.nist.gov/vuln/detail/CVE-2026-35042), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-35042 · Whole record: https://cve.day/CVE-2026-35042.json · Rebuilt by cve.day 2026-11-25T22:59:18.042Z
