Skip to content
Insights · weakness

CWE-116: Improper Encoding or Escaping of Output

Sources read 2026-11-18. MITRE's own page · All weakness notes · Added to CISA's list in the last seven days

What it is

From MITRE's CWE catalogue

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.

MITRE classes it as a class-level weakness and rates the likelihood of exploit as high.

What it lets an attacker do

From MITRE's CWE catalogue

  • Modify Application Data, Execute Unauthorized Code or Commands, Bypass Protection Mechanism (affects: integrity, confidentiality, availability, access control)

On CISA's exploited list

From CISA's exploited list

1 of the 113 entries CISA added from 2026-08-21 to 2026-11-18 name CWE-116, against 1 of 71 in the 90 days before. Over the whole catalogue 5 entries name it. The counts are small, so read them as a rough order, not a rate.

CISA's list is not every flaw that is exploited: it holds the ones CISA has evidence of, listed on the day it added them.

  • CVE-2024-10441, Synology DiskStation Manager (DSM), added 2026-11-18
  • CVE-2026-20245, Cisco Catalyst SD-WAN Manager, added 2026-06-09
  • CVE-2024-38475, Apache HTTP Server, added 2025-05-01
  • CVE-2022-42948, Fortra Cobalt Strike, added 2023-03-30
  • CVE-2022-24682, Synacor Zimbra Collaborate Suite (ZCS), added 2022-02-25

How MITRE says to find it

From MITRE's CWE catalogue

  • Automated Static Analysis
  • Automated Dynamic Analysis

What MITRE suggests

From MITRE's CWE catalogue

These are MITRE's suggestions, quoted as it gives them. They are not a complete fix and not a substitute for reading the vendor's advisory for the product you run.

  • Architecture and Design: Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using the ESAPI Encoding control [REF-45] or a similar tool, library, or framework.
  • Architecture and Design: If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated.
  • Architecture and Design: Understand 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.
  • Architecture and Design: In 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.

Attack patterns MITRE links to it

From MITRE's CWE catalogue

Start with one piece of work.

Give us one piece of work and read access to one system. We map it and come back with what we found, what we would build and what it would take — before any commitment. You decide using our output, not our pitch.

Talk to us