Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.jwt.hardcoded-secret

A JWT or framework signing secret is hard-coded in source. Anyone with the code can forge tokens/sessions.

Last updated:

Suite: Security

python

A JWT or framework signing secret is hard-coded in source. Anyone with the code can forge tokens/sessions.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Read the secret from the environment or a secret manager and rotate the exposed value.

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.