Skip to content
vetkitChecksChangelogDocumentation

vetkit.js.ssti.request-template

Request input is compiled as a template (EJS, Pug, Handlebars, Nunjucks, lodash.template ...). Server-side template injection lets an attacker run code on the server.

Last updated:

Suite: Security

javascript, typescript

Request input is compiled as a template (EJS, Pug, Handlebars, Nunjucks, lodash.template ...). Server-side template injection lets an attacker run code on the server.

Category: SECURITY · Engine rule severity: ERROR

How to fix it

Compile only templates shipped with the application and pass user input as template data (the second argument), never as template source.

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.