Common Weakness Enumeration

    CWE Definition / CWE-1427

    CWE-1427: Improper Neutralization of Input Used for LLM Prompting

    The product uses externally-provided data to build prompts provided to large language models (LLMs), but the way these prompts are constructed causes the LLM to fail to distinguish between user-supplied inputs and developer provided system directives.

    Published:21 Jun 2024
    Organization:MITRE
    Modified:30 Apr 2026

    Related Weakness

    CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')