Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.jwt.algorithm-from-token

The JWT verification algorithm is taken from the token's own unverified header. Attackers choose the algorithm (algorithm confusion, "none").

Last updated:

Suite: Security

python

The JWT verification algorithm is taken from the token's own unverified header. Attackers choose the algorithm (algorithm confusion, "none").

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Pin algorithms to a fixed list such as ["RS256"] that matches the key type.

References

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