CWE•Class•Draft•20 recent CVEs
CWE-116Improper Encoding or Escaping of Output
Description
The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
[object Object]
Common consequences
- Integrity→Modify Application DataThe communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
- Integrity,Confidentiality,Availability,Access Control→Execute Unauthorized Code or CommandsThe communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
- Confidentiality→Bypass Protection MechanismThe communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.
Potential mitigations
- Architecture and Design[object Object]
- Architecture and Design[object Object]
- Architecture and Design,ImplementationUnderstand the context in which your data will be used and the encoding that will be expected. This is especially important when transmitting data between different components, or when generating outputs that can contain multiple encodings at the same time, such as web pages or multi-part mail messages. Study all expected communication protocols and data representations to determine the required e
- Architecture and DesignIn some cases, input validation may be an important strategy when output encoding is not a complete solution. For example, you may be providing the same output that will be processed by multiple consumers that use different encodings or representations. In other cases, you may be required to allow user-supplied input to contain control information, such as limited HTML tags that support formatting
- Architecture and DesignUse input validation as a defense-in-depth measure to reduce the likelihood of output encoding errors (see CWE-20).
- RequirementsFully specify which encodings are required by components that will be communicating with each other.
- ImplementationWhen exchanging data between components, ensure that both components are using the same character encoding. Ensure that the proper encoding is applied at each interface. Explicitly set the encoding you are using whenever the protocol allows you to do so.
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-87957.82026-06-09CVE-2026-464962026-06-05CVE-2026-202457.82026-06-04CVE-2026-423212026-06-03CVE-2026-485982026-06-02CVE-2026-482097.12026-06-01CVE-2026-447138.82026-05-27CVE-2026-455709.62026-05-27CVE-2026-449725.02026-05-27CVE-2026-93546.52026-05-24CVE-2026-260286.12026-05-20CVE-2026-342464.82026-05-19CVE-2026-444295.42026-05-14CVE-2026-453759.02026-05-14CVE-2026-445882026-05-14CVE-2026-444584.32026-05-13CVE-2026-439397.32026-05-12CVE-2026-439388.12026-05-12CVE-2026-289078.12026-05-11CVE-2026-398266.12026-05-07