vetkit.ruby.template-injection.request-input
Request input is compiled as a template (ERB.new / render inline: / Haml / Slim). Template code runs Ruby, so this is server-side template injection leading to code execution.
Last updated:
Suite: Security
ruby
Request input is compiled as a template (ERB.new / render inline: / Haml / Slim). Template code runs Ruby, so this is server-side template injection leading to code execution.
Category: SECURITY · Engine rule severity: ERROR
How to fix it
Render templates from files you control and pass user input as locals; use Liquid for user-authored templates.
References
Source: packages/engine/rules/sast/ruby.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.