Common Weakness Enumeration

    CWE Definition / CWE-470

    CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

    The product uses external input with reflection to select which classes or code to use, but it does not sufficiently prevent the input from selecting improper classes or code.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-913: Improper Control of Dynamically-Managed Code Resources

    CWE-913: Improper Control of Dynamically-Managed Code Resources

    CWE-610: Externally Controlled Reference to a Resource in Another Sphere

    CWE-20: Improper Input Validation