vetkit.csharp.jwt.lifetime-validation-disabled
JWT lifetime validation is disabled (ValidateLifetime = false or RequireExpirationTime = false). Expired or never-expiring tokens are accepted, so a leaked token stays valid forever.
Last updated:
Suite: Security
csharp
JWT lifetime validation is disabled (ValidateLifetime = false or RequireExpirationTime = false). Expired or never-expiring tokens are accepted, so a leaked token stays valid forever.
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Keep ValidateLifetime = true and RequireExpirationTime = true; use a short ClockSkew instead of disabling the check.
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.