Cyber Posture

CWE · MITRE source

CWE-116Improper Encoding or Escaping of Output

Abstraction: Class · CVEs in our corpus: 415

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.

Improper encoding or escaping can allow attackers to change the commands that are sent to another component, inserting malicious commands instead. Most products follow a certain protocol that uses structured messages for communication between components, such as queries or commands. These structured messages can contain raw data interspersed with metadata or control information. For example, "GET /index.html HTTP/1.1" is a structured message containing a command ("GET") with a single argument ("/index.html") and metadata about which protocol version is being used ("HTTP/1.1"). If an application uses attacker-supplied inputs to construct a structured message without properly encoding or escaping, then the attacker could insert special characters that will cause the data to be interpreted as control information or metadata. Consequently, the component that receives the output will perform the wrong operations, or otherwise interpret the data incorrectly.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (1)AI

Control Title Family Why it addresses this CWE
SI-15Information Output FilteringSIValidating that output matches expected content directly mitigates failures to properly encode or escape data for its destination context.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2024-38475 KEV9.49.10.93782024-07-01
CVE-2022-24682 KEV8.56.10.87972022-02-09
CVE-2022-364467.59.80.92932022-07-25
CVE-2024-384736.98.10.88362024-07-01
CVE-2021-318066.46.50.85182021-05-27
CVE-2022-307816.37.50.80732022-05-16
CVE-2024-18745.79.40.63382024-04-29
CVE-2013-45475.50.00.90922013-11-23
CVE-2025-607875.47.20.65292025-10-03
CVE-2022-42948 KEV5.39.80.21822023-03-24
CVE-2024-399294.75.40.60312024-07-04
CVE-2023-320714.69.00.46782023-05-09
CVE-2022-419343.49.90.23622022-11-23
CVE-2022-360993.39.90.21702022-09-08
CVE-2018-86093.08.80.20282018-11-14
CVE-2020-249723.08.80.21342020-08-29
CVE-2022-252352.89.80.13322022-02-16
CVE-2023-264722.69.90.10312023-03-02
CVE-2017-83032.59.80.09642017-05-05
CVE-2022-361002.59.90.08282022-09-08
CVE-2025-562662.49.80.07132025-09-08
CVE-2019-08572.36.50.16382019-04-09
CVE-2019-113252.29.80.04692019-11-21
CVE-2021-289402.29.80.04582021-04-02
CVE-2022-351532.29.80.04422022-08-18