Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. fast-jwt
  4. ›
  5. CVE-2026-35042

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

April 3, 2026 (updated April 6, 2026)

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.


References

  • github.com/advisories/GHSA-9ggr-2464-2j32
  • github.com/advisories/GHSA-hm7r-c7qw-ghp6
  • github.com/nearform/fast-jwt
  • github.com/nearform/fast-jwt/security/advisories/GHSA-hm7r-c7qw-ghp6
  • nvd.nist.gov/vuln/detail/CVE-2026-35042
  • www.rfc-editor.org/rfc/rfc7515.html

Code Behaviors & Features

Detect and mitigate CVE-2026-35042 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 6.1.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

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

Source file

npm/fast-jwt/CVE-2026-35042.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:35 +0000.