Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.crypto.weak-rsa-key

An RSA/DSA key pair is generated with a modulus shorter than 2048 bits. This is below current minimum key-size recommendations.

Last updated:

Suite: Security

javascript, typescript

An RSA/DSA key pair is generated with a modulus shorter than 2048 bits. This is below current minimum key-size recommendations.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Generate RSA keys with at least 2048 bits (3072+ for long-lived keys), or use Ed25519 / P-256.

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.