Skip to content
vetkitChecksChangelogDocumentation

vetkit.nginx.header.crlf-injection

nginx writes the decoded request path ($uri / $document_uri) into a redirect or response header. A request containing an encoded line break (%0d%0a) can inject headers into the response (HTTP response splitting).

Last updated:

Suite: Security

regex

nginx writes the decoded request path ($uri / $document_uri) into a redirect or response header. A request containing an encoded line break (%0d%0a) can inject headers into the response (HTTP response splitting).

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Use $request_uri, which keeps the original percent-encoding, in redirects and headers.

References

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