CVE-2026-35042

7.5

NearForm · fast-jwt

The fast-jwt library fails to validate the critical header parameter in JSON Web Tokens, potentially leading to the acceptance of invalid tokens in violation of RFC 7515.

Executive summary

A failure to validate critical header parameters in the fast-jwt library creates a security risk by allowing the acceptance of improperly formatted tokens.

Vulnerability

This vulnerability involves an improper verification of data authenticity and a failure to fail securely when encountering unknown critical header parameters. The flaw allows unauthenticated attackers to bypass intended token validation requirements.

Business impact

The inability to properly validate JWT headers can lead to the acceptance of unauthorized or malicious tokens, potentially resulting in unauthorized access to secure system resources. With a CVSS score of 7.5, this high severity vulnerability poses a significant risk to application integrity and access control mechanisms, which could be exploited to compromise sensitive data.

Remediation

Immediate Action: As no official patch is currently listed, users should monitor the NearForm fast-jwt GitHub repository for security updates and consider implementing alternative JWT validation libraries if immediate remediation is required.

Proactive Monitoring: Review application access logs for unusual patterns in JWT handling or authentication requests that might indicate attempts to leverage non-standard header parameters.

Compensating Controls: Implement strict input validation at the API gateway level to filter tokens containing unexpected or suspicious header fields before they reach the backend service.

Exploitation status

Public Exploit Available: Unknown.

Analyst recommendation

Given the high CVSS score and the existence of a proof-of-concept, organizations utilizing the fast-jwt library should prioritize assessing their exposure. Until a formal patch is released, developers must treat this library as insecure and apply strict compensating controls at the network or application perimeter to mitigate potential unauthorized access.

Sources