Cyber Resilience

CWE · MITRE source

CWE-116Improper Encoding or Escaping of Output

Abstraction: Class · CVEs in our corpus: 488

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: 11 August 2026 21:18 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: partial · 3 mapping(s) from 1 framework(s): CAPEC 3 (partial)

See the full cumulative-coverage rollup →

OWASP Top 10 for Web (2025)

This weakness contributes to A05:2025 Injection.

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • SI-15 Information Output Filtering
  • PR.PS-06
Detect
Catch it (CSF Detect / Respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.1.2
  • V1.2.1
  • V1.2.3

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

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-2022-36446 9.99.80.96052022-07-25
CVE-2022-42948 KEV 9.99.80.02712023-03-24
CVE-2022-36099 9.59.90.75892022-09-08
CVE-2022-36100 9.59.90.73612022-09-08
CVE-2024-38475 KEV 9.59.10.99962024-07-01
CVE-2023-32071 8.99.00.71142023-05-09
CVE-2017-8303 8.79.80.24182017-05-05
CVE-2024-1874 8.69.40.32572024-04-29
CVE-2026-20245 KEV 8.57.80.25322026-06-04
CVE-2022-30781 8.47.50.87932022-05-16
CVE-2022-25235 7.99.80.04952022-02-16
CVE-2022-29599 7.99.80.04422022-05-23
CVE-2025-31651 7.99.80.04052025-04-28
CVE-2019-10074 7.89.80.03392019-09-11
CVE-2019-11325 7.89.80.03352019-11-21
CVE-2021-28940 7.89.80.03302021-04-02
CVE-2025-562667.89.80.02892025-09-08
CVE-2018-9246 7.79.80.02582018-06-08
CVE-2018-15494 7.79.80.02542018-08-18
CVE-2021-28662 7.76.50.71872021-05-27
CVE-2021-31806 7.76.50.95782021-05-27
CVE-2022-26174 7.79.80.02422022-03-21
CVE-2024-38474 7.79.80.02462024-07-01
CVE-2022-35153 7.69.80.01702022-08-18
CVE-2021-42010 7.69.80.01502022-10-24