CWE · MITRE source
CWE-838Inappropriate Encoding for Output Context
The product uses or specifies an encoding when generating output to a downstream component, but the specified encoding is not the same as the encoding that is expected by the downstream component.
Using the correct output encoding is essential for ensuring that communications between components are accurate. For example, HTML entity encoding is used for elements in the HTML body of a web page. However, a programmer might use entity encoding when generating output that is used within an attribute of an HTML tag, which could contain functional Javascript that is not affected by the HTML encoding. While web applications have received the most attention for this problem, this weakness could potentially apply to any type of product that uses a communications stream that could support multiple encodings.
Last updated: 28 November 2026 15:29 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: full · 20 mapping(s) from 5 framework(s): ATT&CK 9 (full) · ASVS 5.0 4 (full) · ISO_IEC_27002_2022 4 (mostly) · 800-53 2 (mostly) · 1 (mostly)
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
NIST 800-53 r5 controls PROPOSED for this weakness (0)
These are model PROPOSALS, not graded mappings. They come
from controls_to_cwe_proposals, which carries no grade field at
all; across the CWE pages 1,540 of 1,722 such associations (89%) have never
been graded by anything. The heading said “address” until
2026-09-29, which asserted a relationship the data does not carry.
Graded cross-walks are on the framework map, not here.
| Control | Title | Family | Why it addresses this CWE |
|---|---|---|---|
| No NIST controls proposed yet. | |||
MITRE ATT&CK techniques this weakness enables
Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing).
Direction: ← other covers this;
→ this covers other (F/M/P = full / mostly /
partial). gov = governs / implements (a mandate, not coverage).
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2019-18981 UPD | 7.6 | 9.8 | 0.0139 | 2019-11-15 |
CVE-2025-4052 UPD | 7.3 | 9.8 | 0.0054 | 2025-05-05 |
CVE-2019-6110 UPD | 6.6 | 6.8 | 0.2393 | 2019-01-31 |
CVE-2020-10996 UPD | 6.4 | 8.1 | 0.0154 | 2020-04-27 |
CVE-2024-11702 UPD | 6.0 | 7.5 | 0.0072 | 2024-11-26 |
CVE-2018-9862 UPD | 5.8 | 7.8 | 0.0042 | 2018-04-09 |
CVE-2023-6512 UPD | 5.3 | 6.5 | 0.0116 | 2023-12-06 |
CVE-2026-55858 UPD | 4.8 | 5.9 | 0.0087 | 2026-08-28 |
CVE-2026-55859 UPD | 4.7 | 5.9 | 0.0049 | 2026-08-28 |
CVE-2026-119281 | 4.7 | 5.9 | 0.0047 | 2026-10-29 |
CVE-2023-5770 UPD | 4.5 | 5.3 | 0.0052 | 2024-01-09 |
CVE-2026-114650 UPD | 4.1 | 5.9 | 0.0011 | 2026-10-22 |
CVE-2020-7292 UPD | 3.9 | 4.3 | 0.0086 | 2020-07-15 |
CVE-2023-3735 UPD | 3.8 | 4.3 | 0.0057 | 2023-08-01 |
CVE-2024-34006 UPD | 3.8 | 4.3 | 0.0059 | 2024-05-31 |
CVE-2020-29135 UPD | 3.5 | 4.1 | 0.0058 | 2020-11-27 |