CWE-1287: Improper Validation of Specified Type of Input
The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.
Last updated
Overview
When input does not comply with the expected type, attackers could trigger unexpected errors, cause incorrect actions to take place, or exploit latent vulnerabilities that would not be possible if the input conformed with the expected type. This weakness can appear in type-unsafe programming languages, or in programming languages that support casting or conversion of an input to another type.
Real-world CVEs
124 recorded CVEs are caused by CWE-1287 (Improper Validation of Specified Type of Input), including 1 in CISA's KEV (Known Exploited Vulnerabilities) catalog. KEVs are shown first. 21 new CWE-1287 CVEs have been recorded so far in 2026 (66 in 2025).