CWE-162: Improper Neutralization of Trailing Special Elements
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes trailing special elements that could be interpreted in unexpected ways when they are sent to a downstream component.
Last updated
Overview
As data is parsed, improperly handled trailing special elements may cause the process to take unexpected actions that result in an attack.
Real-world CVEs
1 recorded CVEs are caused by CWE-162 (Improper Neutralization of Trailing Special Elements). The highest-severity and most recent are shown first. 1 new CWE-162 CVE has been recorded so far in 2026.
Common consequences
What can happen when CWE-162 is exploited.
Unexpected State
Affects: Integrity
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-162, grouped by where in the lifecycle they apply.