CWE-81: Improper Neutralization of Script in an Error Message Web Page

low-risk

The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page.

Abstraction: Variant

Common Consequences

Confidentiality Read Application Data

Detection Methods

Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Real-World Examples (7)

CVE CVSS EPSS KEV
CVE-2024-6892 6.1 4.4%
CVE-2022-4361 10.0 1.3%
CVE-2024-47064 6.1 0.9%
CVE-2022-4137 8.1 0.5%
CVE-2019-25027 6.1 0.4%
CVE-2024-47882 5.9 0.3%
CVE-2025-24344 6.3 0.1%
0
/ 100
low-risk
Active Threat 0/50 · Minimal
Exploit Availability 0/50 · Minimal