Skip to content

CWE-201: Insertion of Sensitive Information Into Sent Data

cwe.mitre.org • September 8, 2026

Compartmentalize the system to have "safe" areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.

Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

Class: Not Language-Specific (Undetermined Prevalence)

The following is an actual MySQL error statement:

The error clearly exposes the database credentials.

Note: this is a curated list of examples for users to understand the variety of ways in which this weakness can be introduced. It is not a complete list of all CVEs that are related to this CWE entry.

Extracted Entities

Attack Types (1)

Platforms (1)