Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.jwt.unsigned-tokens-accepted

JWT validation accepts tokens without a verified signature (RequireSignedTokens = false or a SignatureValidator that returns the token unchecked). Anyone can forge a token.

Last updated:

Suite: Security

csharp

JWT validation accepts tokens without a verified signature (RequireSignedTokens = false or a SignatureValidator that returns the token unchecked). Anyone can forge a token.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Remove the custom SignatureValidator and keep RequireSignedTokens = true with a configured IssuerSigningKey / authority metadata.

References

Source: packages/engine/rules/sast/csharp.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.