Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.redos.request-regexp

A regular expression is compiled from request input. Attackers can submit catastrophic patterns that block the Node.js event loop (ReDoS) or match more than intended.

Last updated:

Suite: Security

javascript, typescript

A regular expression is compiled from request input. Attackers can submit catastrophic patterns that block the Node.js event loop (ReDoS) or match more than intended.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Escape the input before embedding it (e.g. lodash escapeRegExp) or match with plain string functions (includes, startsWith).

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.