vetkit.ruby.xss.link-to-request-url
link_to uses a request parameter as the link target. Rails does not block javascript: URLs in href, so the parameter can inject script (XSS).
Last updated:
Suite: Security
regex
link_to uses a request parameter as the link target. Rails does not block javascript: URLs in href, so the parameter can inject script (XSS).
Category: SECURITY · Engine rule severity: WARNING
How to fix it
Only link to URLs you validated to use the http(s) scheme, or to route helpers.
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.