CWE-138: Improper Neutralization of Special Elements
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as control elements or syntactic markers when they are sent to a downstream component.
Last updated
Overview
Most languages and protocols have their own special elements such as characters and reserved words. These special elements can carry control implications. If product does not prevent external control or influence over the inclusion of such special elements, the control flow of the program may be altered from what was intended. For example, both Unix and Windows interpret the symbol < ("less than") as meaning "read input from a file".
Real-world CVEs
11 recorded CVEs are caused by CWE-138 (Improper Neutralization of Special Elements). The highest-severity and most recent are shown first. 3 new CWE-138 CVEs have been recorded so far in 2026 (1 in 2025).