# CWE-116: Improper Encoding or Escaping of Output

**Likelihood of exploit:** High · **KEV-linked**

> As of 2026-10-05, CWE-116 (Improper Encoding or Escaping of Output) underlies 5 CVEs tracked by Threadlinqs, 1 of them in the CISA Known Exploited Vulnerabilities catalog, and is cited by 20 tracked threats. MITRE rates its likelihood of exploit as High.

**Last updated:** 2026-10-05

## What is CWE-116?

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.

CWE-116 is a class-level weakness in MITRE’s Common Weakness Enumeration, with a MITRE likelihood of exploit of High. Applicable platforms: Language: Not Language-Specific; Technology: Not Technology-Specific; Technology: AI/ML; Technology: Database Server; Technology: Web Server.

_Source: [MITRE CWE](https://cwe.mitre.org/data/definitions/116.html) (CWE-116 definition, reproduced verbatim). Counts and linkage below are Threadlinqs data._

## Consequences

- **Integrity** — Modify Application Data. The 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 Commands. The 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 Mechanism. The communications between components can be modified in unexpected ways. Unexpected commands can be executed, bypassing other security mechanisms. Incoming data can be misinterpreted.

_Source: MITRE CWE, common consequences._

## How CWE-116 is exploited in the wild

Threadlinqs maps 5 CVEs to CWE-116, published between 2026-06-04 and 2026-09-07. 1 is listed in CISA’s Known Exploited Vulnerabilities catalog, the authoritative record of exploitation in the wild. By CVSS v3 severity the set splits into 3 high, 1 medium. The highest EPSS score in the set is 9.9% (CVE-2026-20245), the modelled probability of exploitation in the next 30 days. 20 tracked threats reference CWE-116 directly or through a CVE it covers; the most recent is “Click2Shell WordPress Exploit Chain Lets Attackers Gain RCE With a Single Malicious Link” (2026-09-19). Affected products concentrate in Cisco (1), ash-project (1), ericcornelissen (1), among 5 vendors in total.

## Vulnerabilities (CVEs)

All 5 CVEs mapped to CWE-116, CISA KEV first, then by CVSS score.

- [CVE-2026-20245](https://intel.threadlinqs.com/cve/CVE-2026-20245) — CISA KEV · CVSS 7.8 high · EPSS 9.9% · published 2026-06-04
- [CVE-2026-12044](https://intel.threadlinqs.com/cve/CVE-2026-12044) — CVSS 8.8 high · published 2026-06-18
- [CVE-2026-84292](https://intel.threadlinqs.com/cve/CVE-2026-84292) — CVSS 7.5 high · EPSS 0.2% · published 2026-09-02
- [CVE-2026-73055](https://intel.threadlinqs.com/cve/CVE-2026-73055) — CVSS 4.8 medium · EPSS 0.2% · published 2026-08-15
- [CVE-2026-82756](https://intel.threadlinqs.com/cve/CVE-2026-82756) — EPSS 0.3% · published 2026-09-07

## Affected vendors

- [Cisco](https://intel.threadlinqs.com/vendors/cisco) — 1 CVE
- [ash-project](https://intel.threadlinqs.com/vendors/ash-project) — 1 CVE
- **ericcornelissen** — 1 CVE
- **fast-uri** — 1 CVE
- **pgadmin.org** — 1 CVE

## Threat activity

20 tracked threats cite CWE-116:

- [Click2Shell WordPress Exploit Chain Lets Attackers Gain RCE With a Single Malicious Link](https://intel.threadlinqs.com/threat/TL-2026-2587) — CRITICAL · 2026-09-19
- [Adobe and Nvidia Patch Dozens of Vulnerabilities Across Multiple Products, Including Two Critical Flaws in Nvidia's NemoClaw AI Agent Stack and a CVSS 10.0 Adobe Campaign Classic Chain](https://intel.threadlinqs.com/threat/TL-2026-2152) — CRITICAL · 2026-08-26
- [CSS Bomb Attacks: CSS-Based Trust-Boundary Bypass Leaks Webmail Passwords and Tokens (Outlook, Gmail, Yahoo, AOL, Fastmail, Proton Mail)](https://intel.threadlinqs.com/threat/TL-2026-1968) — HIGH · 2026-08-10
- [CSS Bomb: JavaScript-Free CSS Keylogging and Token-Theft Attacks Against Gmail, Outlook, Yahoo Mail, AOL Mail, Fastmail, and ProtonMail](https://intel.threadlinqs.com/threat/TL-2026-1956) — HIGH · 2026-08-09
- [WordPress Core XSS2Shell Vulnerability Chains Pre-Auth XSS to RCE (CVE-2026-64638)](https://intel.threadlinqs.com/threat/TL-2026-1933) — HIGH · 2026-08-07
- [Command Injection Vulnerabilities in Bing Images Processing Pipeline (CVE-2026-32194, CVE-2026-32191, CVE-2026-21536) — RCE as NT AUTHORITY\\SYSTEM](https://intel.threadlinqs.com/threat/TL-2026-1677) — CRITICAL · 2026-07-24
- [Multi-Vendor Critical Patch Roundup: Firefox 152.0.6, Chrome 150, Adobe ColdFusion/Commerce/AEM (APSB26-68/73/74), and VMware Avi Load Balancer (VMSA-2026-0005)](https://intel.threadlinqs.com/threat/TL-2026-1403) — CRITICAL · 2026-07-16
- [Roundcube Webmail 0-Click Stored XSS (CVE-2026-54432, CVE-2026-54433) — Versions Prior to 1.6.17 / 1.7.2](https://intel.threadlinqs.com/threat/TL-2026-1185) — HIGH · 2026-07-10
- [Cisco Catalyst SD-WAN Manager Zero-Day Exploitation Chain (CVE-2026-20245, CVE-2026-20127, CVE-2026-20182)](https://intel.threadlinqs.com/threat/TL-2026-1064) — CRITICAL · 2026-07-02
- [Active Exploitation of Cisco Unified Communications Manager WebDialer SSRF (CVE-2026-20230) and Catalyst SD-WAN Manager Root Privilege-Escalation Zero-Day (CVE-2026-20245)](https://intel.threadlinqs.com/threat/TL-2026-1025) — CRITICAL · 2026-07-01
- [pgAdmin 4 v9.16 Patches 7 Vulnerabilities (CVE-2026-12044 to CVE-2026-12050): SQLi, AI-Assistant Read-Only Bypass to RCE, Auth Bypass with Pickle Deserialization, Stored XSS](https://intel.threadlinqs.com/threat/TL-2026-0900) — HIGH · 2026-06-22
- [Everest Forms Pro WordPress Plugin CVE-2026-3300 — Unauthenticated RCE via Calculation Addon process_filter() eval() Injection (CVSS 9.8, Active Exploitation)](https://intel.threadlinqs.com/threat/TL-2026-0689) — CRITICAL · 2026-06-06
- [Cisco Catalyst SD-WAN Manager CVE-2026-20245 — Actively Exploited 0-Day: Authenticated File-Upload Command Injection to Root](https://intel.threadlinqs.com/threat/TL-2026-0696) — HIGH · 2026-06-06
- [New Wave of SVG-Attachment Phishing — application/ecmascript MIME Evasion + XOR-Decoded Browser Redirect (chinougoo.cfd)](https://intel.threadlinqs.com/threat/TL-2026-0657) — MEDIUM · 2026-06-02
- [Roundcube Webmail Pre-Auth SQL Injection in virtuser_query Plugin (CVE-2026-48842) — Patched in 1.6.16 / 1.7.1 Alongside 7 Other Vulnerabilities](https://intel.threadlinqs.com/threat/TL-2026-0616) — HIGH · 2026-05-28
- [Magecart SVG Pixel Onload Skimmer Campaign Targeting 99 Magento Stores](https://intel.threadlinqs.com/threat/TL-2026-0338) — HIGH · 2026-04-08
- [GlassWorm Supply Chain Attack: Fake Browser Extension & Multi-Stage RAT via Compromised Developer Packages](https://intel.threadlinqs.com/threat/TL-2026-0287) — HIGH · 2026-03-26
- [GlassWorm v3 Supply Chain Attack — 72 Malicious Open VSX Extensions, 151 GitHub Repos & ZOMBI Botnet Module](https://intel.threadlinqs.com/threat/TL-2026-0231) — HIGH · 2026-03-15
- [Coordinated Reconnaissance Campaign Maps SonicWall SSL VPN Attack Surface via Commercial Proxy Infrastructure (84,142 Sessions / 4,305 IPs / 20 ASNs)](https://intel.threadlinqs.com/threat/TL-2026-1468) — HIGH · 2026-02-25
- [ClickFix Browser Cache Smuggling — Social Engineering MaaS Toolkit Storing Malware Payloads in Browser Cache to Bypass EDR, Firewalls, and Download Alerts](https://intel.threadlinqs.com/threat/TL-2026-0127) — HIGH · 2026-02-21

## Mitigations

- **Architecture and Design / Libraries or Frameworks**: 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. These will help the programmer encode outputs in a manner less prone to error. Alternately, use built-in functions, but consider using wrappers in case those functions are discovered to have a vulnerability.
- **Architecture and Design / Parameterization**: 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. For example, stored procedures can enforce database query structure and reduce the likelihood of SQL injection.
- **Architecture and Design, Implementation**: 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. Study all expected communication protocols and data representations to determine the required encoding strategies.
- **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. In other cases, you may be required to allow user-supplied input to contain control information, such as limited HTML tags that support formatting in a wiki or bulletin board. When this type of requirement must be met, use an extremely strict allowlist to limit which control sequences can be used. Verify that the resulting syntactic structure is what you expect. Use your normal encoding methods for the remainder of the input.
- **Architecture and Design**: Use input validation as a defense-in-depth measure to reduce the likelihood of output encoding errors (see CWE-20).
- **Requirements**: Fully specify which encodings are required by components that will be communicating with each other.
- **Implementation**: When 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.

_Source: MITRE CWE, potential mitigations._

## Detection methods (MITRE CWE)

- **Automated Static Analysis** (effectiveness: Moderate): This weakness can often be detected using automated static analysis tools. Many modern tools use data flow analysis or constraint-based techniques to minimize the number of false positives.
- **Automated Dynamic Analysis**: This weakness can be detected using dynamic tools and techniques that interact with the software using large test suites with many diverse inputs, such as fuzz testing (fuzzing), robustness testing, and fault injection. The software's operation may slow down, but it should not become unstable, crash, or generate incorrect results.

_Source: MITRE CWE, detection methods. Threadlinqs detection rules for the threats above are Blue tier and higher._

## Related weaknesses

- CWE-707 Improper Neutralization
- [CWE-74 Injection](https://intel.threadlinqs.com/cwe/CWE-74)

Canonical: https://intel.threadlinqs.com/cwe/CWE-116
Source definition: https://cwe.mitre.org/data/definitions/116.html
Detection rules and IOCs for threats exploiting CWE-116 via the Threadlinqs MCP server (Purple tier): https://intel.threadlinqs.com/mcp
