---
title: "CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax"
url: https://radicalnotion.ai/cwe/cwe-644
type: cwe
description: "The product does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Incomplete
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 61
- **Of those, in CISA KEV:** 0
- **New in 2026:** 26
- **CWE catalog version:** 4.21

## Description

The product does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Applicable platforms

**Technologies:** Web Based (Undetermined), Web Server (Undetermined)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity, Confidentiality, Availability | Execute Unauthorized Code or Commands | The header may contain a script that will get executed in the client's browser context, potentially resulting in a cross site scripting vulnerability or possibly an HTTP response splitting attack. |
| Confidentiality | Read Application Data | Attackers may be able to obtain sensitive information. |

## Potential mitigations

### Architecture and Design

Carefully control data that is being placed both in HTTP response headers and in the HTTP response body to ensure that no scripting syntax is present, taking various encodings into account. Perform output validation in order to filter/escape/encode unsafe data that is being passed from the server in an HTTP response header.

### Architecture and Design

Disable script execution functionality in the clients' browser.

## Demonstrative examples

### Example 1

In the following Java example, user-controlled data is added to the HTTP headers and returned to the client. Given that the data is not subject to neutralization, a malicious user may be able to inject dangerous scripting tags that will lead to script execution in the client browser.

Bad code:

```java
response.addHeader(HEADER_NAME, untrustedRawInputData);
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2006-3918 | Web server does not remove the Expect header from an HTTP request when it is reflected back in an error message, allowing a Flash SWF file to perform XSS attacks. |

## Real CVEs with this weakness (sample of 12 of 61)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-47143 | IBM Tivoli Application Dependency Discovery Manager HOST header injection | critical | 10.0 | - | No | 2024-02-02 |
| CVE-2025-52660 | HCL AION is affected by an Host Header Injection vulnerability | critical | 9.8 | - | No | 2026-01-19 |
| CVE-2024-39736 | IBM Datacap Navigator HTTP HOST header injection | critical | 9.8 | - | No | 2024-07-15 |
| CVE-2026-124933 | Sandbox escape in the Console component | critical | 9.6 | - | No | 2026-11-10 |
| CVE-2026-26747 | - | critical | 9.1 | - | No | 2026-02-20 |
| CVE-2026-33805 | @fastify/reply-from vulnerable to connection header abuse enabling stripping of proxy-added headers | critical | 9.0 | - | No | 2026-04-15 |
| CVE-2023-32465 | - | high | 8.8 | - | No | 2023-06-14 |
| CVE-2020-6982 | Improper Neutralization of HTTP Headers for Scripting Syntax in Honeywell WIN-PAK | high | 8.8 | - | No | 2020-03-24 |
| CVE-2017-6031 | Improper Neutralization of HTTP Headers for Scripting Syntax in Certec EDV GmbH atvise scada | high | 8.8 | - | No | 2017-05-06 |
| CVE-2026-26234 | JUNG Smart Visu Server - Improper Neutralization of HTTP Headers for Scripting Syntax | high | 8.7 | - | No | 2026-02-12 |
| CVE-2025-64425 | Coolify has host header injection in forgot password | high | 8.5 | - | No | 2026-01-05 |
| CVE-2025-64484 | OAuth2-Proxy vulnerable to header smuggling via underscore, leading to potential privilege escalation | high | 8.5 | - | No | 2025-11-10 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-116](https://radicalnotion.ai/cwe/cwe-116) | Improper Encoding or Escaping of Output |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| Software Fault Patterns | Tainted input to command | SFP24 | - |

## Frequently asked questions

### What is CWE-644?

The product does not neutralize or incorrectly neutralizes web scripting syntax in HTTP headers that can be used by web browser components that can process raw headers, such as Flash.

### What CVEs are caused by CWE-644?

61 recorded CVEs are attributed to CWE-644, including CVE-2023-47143, CVE-2025-52660 and CVE-2024-39736.

### How do you prevent CWE-644?

Carefully control data that is being placed both in HTTP response headers and in the HTTP response body to ensure that no scripting syntax is present, taking various encodings into account. Perform output validation in order to filter/escape/encode unsafe data that is being passed from the server in an HTTP response header.

### What are the consequences of CWE-644?

Exploiting CWE-644 can lead to: Execute Unauthorized Code or Commands, Read Application Data.

### Is CWE-644 actively exploited?

61 recorded CVEs are caused by CWE-644; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/644.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-644). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
