Skip to content
vetkitChecksChangelogDocumentation

vetkit.csharp.xss.request-validation-disabled

ASP.NET request validation is disabled with [ValidateInput(false)]. Markup in form and query values reaches the action unfiltered, so every output path must encode it correctly.

Last updated:

Suite: Security

csharp

ASP.NET request validation is disabled with [ValidateInput(false)]. Markup in form and query values reaches the action unfiltered, so every output path must encode it correctly.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Remove [ValidateInput(false)]; allow HTML only on the specific model property that needs it ([AllowHtml]) and sanitize that value before rendering it.

References

Source: packages/engine/rules/sast/csharp.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.