vetkit.js.jwt.hardcoded-secret
JWT signed or verified with a hard-coded secret. Anyone with access to the source can forge tokens.
Last updated:
Suite: Security
javascript, typescript
JWT signed or verified with a hard-coded secret. Anyone with access to the source can forge tokens.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Load the signing key from a secret manager or environment variable and rotate the leaked value.
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.