Security Resilience

CWE · MITRE source

CWE-838Inappropriate Encoding for Output Context

Abstraction: Base · CVEs in our corpus: 19

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)

See the full cumulative-coverage rollup →

Control responseHuman-reviewed

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

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • PR.PS-06
  • SI-15 Information Output Filtering
  • SA-8 Security and Privacy Engineering Principles
Detect
Catch it (CSF Detect / Respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V1.2.1
  • V1.2.2
  • V1.2.3
  • V1.2.5
Our mappings

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.
Our mappings

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 7.69.80.01392019-11-15
CVE-2025-4052 7.39.80.00542025-05-05
CVE-2019-6110 6.66.80.23932019-01-31
CVE-2020-10996 6.48.10.01542020-04-27
CVE-2024-11702 6.07.50.00722024-11-26
CVE-2018-9862 5.87.80.00422018-04-09
CVE-2023-6512 5.36.50.01162023-12-06
CVE-2026-55858 4.85.90.00872026-08-28
CVE-2026-55859 4.75.90.00492026-08-28
CVE-2026-1192814.75.90.00472026-10-29
CVE-2023-5770 4.55.30.00522024-01-09
CVE-2026-114650 4.15.90.00112026-10-22
CVE-2020-7292 3.94.30.00862020-07-15
CVE-2023-3735 3.84.30.00572023-08-01
CVE-2024-34006 3.84.30.00592024-05-31
CVE-2020-29135 3.54.10.00582020-11-27