Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.code-injection.eval

Dynamic code evaluation with a non-literal argument. If any part of the value is attacker-controlled this is arbitrary code execution.

Last updated:

Suite: Security

javascript, typescript

Dynamic code evaluation with a non-literal argument. If any part of the value is attacker-controlled this is arbitrary code execution.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Remove eval/new Function/vm.run*; parse data with JSON.parse or dispatch through an explicit allow-list of functions instead.

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.