SiteShadow
Back to vulnerability library

CWE-476 NULL Pointer Dereference

What this means

SiteShadow flagged code paths where null/None/undefined values may be dereferenced without checks. In many systems this is "just" a crash, but in security contexts it can become a reliability or availability issue.

Why it matters

Null dereferences can crash services or expose unexpected behavior.

Safer examples

1) Validate inputs and required fields early

Reject requests missing required fields (see CWE-20).

2) Use type-safe patterns

Use optional types and static analysis to force handling of missing values.

3) Fail closed on auth/security checks

If a value required for auth is missing, treat it as unauthorized, not "skip check."

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Request access View coverage