SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysisPro

CWE-93 CRLF Injection

Coverage: 10 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 10 Also: Taint and heuristic analyzers may also detect related flows (see coverage for the authoritative list) Registry tagging shows intent, for sample-level behaviour and benchmarked gaps see known gaps.

What this means

SiteShadow flagged untrusted input that may include CRLF characters (\r\n) being used in outputs like headers, redirects, logs, or generated responses.

Why it matters

CRLF injection can split responses or inject headers.

Safer examples

1) Reject \r and \n in header/redirect values

function rejectCRLF(value) {
  if (/[\\r\\n]/.test(value)) throw new Error("Invalid characters");
  return value;
}

2) Don't put user input directly into headers

Use server-generated values or allowlists (see CWE-113).

3) Use framework APIs rather than manual header concatenation

Framework helpers often normalize safely; avoid building raw header strings.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Catch this with SiteShadow Pro.

This vulnerability class is detected by SiteShadow's Pro-tier engines, two-pass interprocedural taint analysis, heuristic flow checks, AI-context scanning, and cross-file detection. The free tier catches OWASP Top 10 single-file patterns; Pro adds the data-flow depth that finds this class of bug.