Skip to content
vetkitChecksChangelogDocumentation

vetkit.ruby.jwt.verification-disabled

JWT.decode is called with signature verification disabled or the "none" algorithm, so anyone can forge tokens.

Last updated:

Suite: Security

ruby

JWT.decode is called with signature verification disabled or the "none" algorithm, so anyone can forge tokens.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Call JWT.decode(token, key, true, algorithm: 'HS256') (or RS256 with the public key) and never accept 'none'.

References

Source: packages/engine/rules/sast/ruby.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.