Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.jwt.none-algorithm

JWT verification accepts the none algorithm, which disables signature checking.

Last updated:

Suite: Security

javascript, typescript

JWT verification accepts the none algorithm, which disables signature checking.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Pin algorithms to the exact signing algorithm(s) you use (e.g. ["HS256"] or ["RS256"]).

Rule pattern example

The engine’s matching pattern, not a confirmed exploit. Metavariables and ellipses describe matching syntax.

$JWT.verify($TOKEN, $KEY, {..., algorithms: [..., "none", ...], ...}, ...)

References

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