CWE-1286: Improper Validation of Syntactic Correctness of Input
The product receives input that is expected to be well-formed - i.e., to comply with a certain syntax - but it does not validate or incorrectly validates that the input complies with the syntax.
Last updated
Overview
CWE-1286 (Improper Validation of Syntactic Correctness of Input) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
Often, complex inputs are expected to follow a particular syntax, which is either assumed by the input itself, or declared within metadata such as headers. The syntax could be for data exchange formats, markup languages, or even programming languages.
Real-world CVEs
101 recorded CVEs are caused by CWE-1286 (Improper Validation of Syntactic Correctness of Input). The highest-severity and most recent are shown first. 46 new CWE-1286 CVEs have been recorded so far in 2026 (22 in 2025).
- CVE-2015-10149
Dancer versions before 1.3400 for Perl pass unvalidated session ids from the session cookie to the session engine
Critical · CVSS 9.8 · EPSS 48th2026-11-14 - CVE-2026-110759
Text::CSV_XS versions before 1.65 for Perl return a 0xFF byte that is not in the input for an empty last field followed by a lone CR in parse
Critical · CVSS 9.8 · EPSS 40th2026-10-16