Common Weakness Enumeration

    CWE Definition / CWE-1287

    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.

    Published:24 Jun 2020
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-20: Improper Input Validation

    CWE-843: Access of Resource Using Incompatible Type ('Type Confusion')