SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysisPro

CWE-74 Injection

Coverage: 24 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 19Other-pattern 5 Also: AI-context engineTaint 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 an "injection-shaped" pattern: untrusted input is being used to build something that will later be interpreted (SQL, commands, HTML, templates, headers, file paths).

Why it matters

Injection enables attackers to run unintended commands or queries.

Safer examples

1) Parameterize queries (don't concatenate)

await db.query("SELECT * FROM users WHERE id = $1", [id]);

2) Use safe APIs (avoid "interpret me" sinks)

Use textContent instead of innerHTML, argument arrays instead of shell strings, and allowlists for dynamic behavior.

3) Validate at trust boundaries

Validate inputs in request handlers and reject unexpected shapes/lengths (see CWE-20).

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.