Skip to content
vetkitChecksChangelogDocumentation

vetkit.java.jwt.parse-accepts-unsigned

A JWT is parsed with jjwt's generic parse(), which in jjwt < 0.12 also accepts unsigned tokens.

Last updated:

Suite: Security

java

A JWT is parsed with jjwt's generic parse(), which in jjwt < 0.12 also accepts unsigned tokens.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use parseClaimsJws (jjwt 0.11) or parseSignedClaims (jjwt 0.12+) so unsigned tokens are rejected.

References

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