Skip to main content

What it flags

JWT signing or verification uses a short (< 32 chars) or weak literal secret susceptible to brute-force forgery. Only calls that resolve to a supported JWT library are checked: jsonwebtoken, jose, @nestjs/jwt and hono/jwt. Local sign or verify helpers with the same names are not reported. For NestJS JwtService calls, only secret in the options argument is checked, so a string payload is not treated as the key, and options with a spread or computed key are skipped.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: