---
title: "CWE-1289: Improper Validation of Unsafe Equivalence in Input"
url: https://radicalnotion.ai/cwe/cwe-1289
type: cwe
description: "The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-1289: Improper Validation of Unsafe Equivalence in Input

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Incomplete
- **CVEs with this as primary weakness:** 44
- **Of those, in CISA KEV:** 0
- **New in 2026:** 34
- **CWE catalog version:** 4.21

## Description

The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Varies by Context, Bypass Protection Mechanism | Attackers can sometimes bypass input validation schemes by finding inputs that appear to be safe, but will be dangerous when processed at a lower layer or by a downstream component. For example, a simple XSS protection mechanism might try to validate that an input has no "\<script\>" tags using case-sensitive matching (CWE-178), but since HTML is case-insensitive when processed by web browsers, an attacker could inject "\<ScrIpT\>" and trigger XSS (CWE-79). |

## Potential mitigations

### Implementation (Input Validation)

Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."

Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.

Effectiveness: High

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2021-39155 | Chain: A microservice integration and management platform compares the hostname in the HTTP Host header in a case-sensitive way (CWE-178, CWE-1289), allowing bypass of the authorization policy (CWE-863) using a hostname with mixed case or other variations. |
| CVE-2020-11053 | Chain: Go-based Oauth2 reverse proxy can send the authenticated user to another site at the end of the authentication flow. A redirect URL with HTML-encoded whitespace characters can bypass the validation (CWE-1289) to redirect to a malicious site (CWE-601) |
| CVE-2005-0269 | File extension check in forum software only verifies extensions that contain all lowercase letters, which allows remote attackers to upload arbitrary files via file extensions that include uppercase letters. |
| CVE-2001-1238 | Task Manager does not allow local users to end processes with uppercase letters named (1) winlogon.exe, (2) csrss.exe, (3) smss.exe and (4) services.exe via the Process tab which could allow local users to install Trojan horses that cannot be stopped. |
| CVE-2004-2214 | HTTP server allows bypass of access restrictions using URIs with mixed case. |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-39821 | Invoking failure to reject ASCII-only Punycode-encoded labels in golang.org/x/net/idna | critical | 10.0 | - | No | 2026-05-22 |
| CVE-2026-132231 | - | critical | 9.9 | - | No | 2026-11-18 |
| CVE-2026-100255 | - | critical | 9.8 | - | No | 2026-09-30 |
| CVE-2022-0675 | Puppet Firewall Module May Leave Unmanaged Rules | critical | 9.8 | - | No | 2022-03-02 |
| CVE-2026-50090 | Aqara OAuth redirect\_uri validation bypass | critical | 9.3 | - | No | 2026-06-12 |
| CVE-2026-97196 | WordPress GiveWP plugin \<= 4.16.9 - Broken Authentication vulnerability | critical | 9.1 | - | No | 2026-09-30 |
| CVE-2020-6409 | Inappropriate implementation in Omnibox | high | 8.8 | - | No | 2020-02-11 |
| CVE-2026-116870 | - | high | 8.7 | - | No | 2026-10-27 |
| CVE-2026-102478 | - | high | 8.7 | - | No | 2026-10-07 |
| CVE-2026-86831 | Improper validation of pod identifier uniqueness in aws-network-policy-agent in Amazon EKS | high | 8.7 | - | No | 2026-09-16 |
| CVE-2026-33496 | Ory Oathkeeper has an authentication bypass by cache key confusion | high | 8.1 | - | No | 2026-03-26 |
| CVE-2024-42219 | - | high | 7.8 | - | No | 2024-08-06 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation |
| Peer | [CWE-41](https://radicalnotion.ai/cwe/cwe-41) | Improper Resolution of Path Equivalence |
| Peer | [CWE-178](https://radicalnotion.ai/cwe/cwe-178) | Improper Handling of Case Sensitivity |

## Frequently asked questions

### What is CWE-1289?

The product receives an input value that is used as a resource identifier or other type of reference, but it does not validate or incorrectly validates that the input is equivalent to a potentially-unsafe value.

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

44 recorded CVEs are attributed to CWE-1289, including CVE-2026-39821, CVE-2026-132231 and CVE-2026-100255.

### How do you prevent CWE-1289?

Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.

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

Exploiting CWE-1289 can lead to: Varies by Context, Bypass Protection Mechanism.

### Is CWE-1289 actively exploited?

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

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

---

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