CWE-79: Improper Neutralization of Input During Web Page Generation
Official CWE-79 CWE context with Glexia analysis, remediation guidance, related CVEs, and ATT&CK context.
Glexia's Take
CWE-79: Cross-site Scripting
Improper Neutralization of Input During Web Page Generation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Executive Impact
- Session theft
- Account takeover
- Content spoofing
- Malware delivery
Developer Pattern
CWE-79 is the kind of defect developers can usually prevent with explicit validation, safer framework defaults, and tests that exercise hostile input or unsafe state transitions.
Confidence
medium confidence from CWE-79, starter-2026-05.
Official CWE Definition
CWE-79: Improper Neutralization of Input During Web Page Generation
Cross-site Scripting is a software weakness pattern tracked by CWE 79. The local starter record is replaced by the official MITRE CWE import when the sync pipeline runs.
Cross-site Scripting is a software weakness pattern tracked by CWE 79. The local starter record is replaced by the official MITRE CWE import when the sync pipeline runs.
Developer And Remediation Guidance
How teams prevent and detect this weakness
Causes
- Rendering untrusted comments into HTML without context-aware encoding.
Remediation
- Context-aware output encoding
- Trusted HTML sanitization
- Content Security Policy
- Framework auto-escaping
Detection
- SAST
- DAST
- Code review
- Browser security testing
Mappings
Related CVEs, CWEs, and ATT&CK context
Related CWEs
No related CWE relationships are published yet.
ATT&CK Relevance
ATT&CK relevance is shown only when reviewed or responsibly inferred.