CWEweakness
CWE-1289 Improper Validation of Unsafe Equivalence in Input
- Abstraction
- Base
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
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.
Common consequences
• 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] 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.
Observed examples
• 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.
Related
Observed example · CVE (5)
- CVE-2021-39155 Istio is an open source platform for providing a uniform way to integrate microservices, manage traffic flow across microservices, enforce… vulnerability
- CVE-2020-11053 In OAuth2 Proxy before 5.1.1, there is an open redirect vulnerability. vulnerability
- CVE-2005-0269 The file extension check in GNUBoard 3.40 and earlier only verifies extensions that contain all lowercase letters, which allows remote… vulnerability
- CVE-2004-2214 Mbedthis AppWeb HTTP server before 1.1.3 allows remote attackers to bypass access restrictions via a URI with mixed case characters. vulnerability
- CVE-2001-1238 Task Manager in Windows 2000 does not allow local users to end processes with uppercase letters named (1) winlogon.exe, (2) csrss.exe, (3)… vulnerability
Child of · CWE (1)
- CWE-20 Improper Input Validation weakness
Peer of · CWE (2)
Referenced by CVE · weakness (52)
- CVE-2026-116870 In affected versions of Octopus Server, OIDC token issuer validation was performed inconsistently. vulnerability
- CVE-2026-116197 Edgeless Systems Contrast from 1.21.0 before 1.25.0 contains a non-deterministic registry selection flaw in imagepuller that can prefer… vulnerability
- CVE-2026-114348 webpack-dev-server is a development server that provides live reloading for webpack projects. vulnerability
- CVE-2026-107288 Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. vulnerability
- CVE-2026-107289 Pydantic AI is a Python agent framework for building applications and workflows with Generative AI. vulnerability
- CVE-2026-102478 In affected versions of Octopus Server, an authenticated user with permission to modify roles could bypass the protections preventing… vulnerability
- CVE-2026-106445 Handlebars provides the power necessary to let users build semantic templates. vulnerability
- CVE-2026-105048 The Playground feature of Zilliz Attu before 3.0.0 allows SSRF (proxying of requests to private IP addresses). vulnerability
- CVE-2026-100255 In JetBrains TeamCity before 2026.2, 2026.1.4, 2025.11.8 administrator account takeover was possible via password reset vulnerability
- CVE-2026-97196 Improper Validation of Unsafe Equivalence in Input vulnerability in Liquid Web / StellarWP GiveWP allows Authentication Bypass. vulnerability
- CVE-2026-101015 A flaw has been found in Trusted Domain Project OpenDMARC up to 1.4.2. vulnerability
- CVE-2026-100837 Contrast (Edgeless Systems) through 1.20.0 performs unanchored suffix matching when selecting per-registry configuration in the imagepuller. vulnerability
- CVE-2026-86831 Improper validation of pod identifier uniqueness in aws-network-policy-agent in Amazon EKS Network Policy Agent before v1.4.0 might allow… vulnerability
- CVE-2026-88255 Improper Validation of Unsafe Equivalence in Input in ZenHive mpp allows an unauthenticated remote client to pass the Tempo… vulnerability
- CVE-2026-89049 A server-side request forgery issue due to improper validation of equivalent address representations in the port forwarding to remote hosts… vulnerability
- CVE-2026-76977 SAP UI5 does not sufficiently validate the parent frame's origin against the configured allowlist. vulnerability
- CVE-2026-74994 The mod_auth module in OTP's inets httpd server, when configured with dets or mnesia authentication backends and multiple directory… vulnerability
- CVE-2026-19953 URI versions before 5.36 for Perl encode non-NFC host names to non-standard punycode labels via missing normalization in nameprep. vulnerability
- CVE-2026-60074 Date::Manip versions through 7.00 for Perl return corrupted dates via non-ASCII decimal digits that pass the numeric range tests in check. vulnerability
- CVE-2026-47729 Squid is a caching proxy for the Web. vulnerability
- CVE-2026-46644 Symfony Polyfill backports PHP features and provides compatibility layers for extensions and functions. vulnerability
- CVE-2026-50090 The Aqara Cloud OAuth Authorization Endpoint (open-cn.aqara.com/oauth/authorize) is vulnerable to a redirect bypass due to lax controls on… vulnerability
- CVE-2026-42462 Fedify is a TypeScript library for building federated server apps powered by ActivityPub. vulnerability
- CVE-2026-49940 Net::CIDR::Set versions through 0.20 for Perl accept non-ASCII IP addresses and netmasks. vulnerability
- CVE-2026-49942 Net::CIDR::Set versions through 0.20 for Perl did not validate network masks. vulnerability
- CVE-2026-47674 Hono is a Web application framework that provides support for any JavaScript runtime. vulnerability
- CVE-2026-48710 Starlette is a lightweight ASGI framework/toolkit. vulnerability
- CVE-2026-39821 The ToASCII and ToUnicode functions incorrectly accept Punycode-encoded labels that decode to an ASCII-only label. vulnerability
- CVE-2026-45190 Net::CIDR::Lite versions before 0.24 for Perl does not properly validate IP address and CIDR mask inputs, which may allow IP ACL bypass. vulnerability
- CVE-2026-45191 Net::CIDR::Lite versions before 0.24 for Perl does not properly consider extraneous zero characters in CIDR mask values, which may allow IP… vulnerability