Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.crypto.deprecated-create-cipher

The deprecated crypto.createCipher/createDecipher API is used. It derives the key from a password with a single MD5 round and no salt, reuses the same IV for every message and is removed in Node.js 22.

Last updated:

Suite: Security

javascript, typescript

The deprecated crypto.createCipher/createDecipher API is used. It derives the key from a password with a single MD5 round and no salt, reuses the same IV for every message and is removed in Node.js 22.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use createCipheriv with a random 12-byte IV per message and AES-256-GCM, deriving the key with scrypt or a KMS-managed key.

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.