CWE-180: Incorrect Behavior Order: Validate Before Canonicalize

What is CWE-180?

CWE-180 is Incorrect Behavior Order: Validate Before Canonicalize. The flaw arises when the product validates input before it is canonicalized. The database currently holds 41 vulnerabilities mapped to CWE-180 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

OWASP Top 10 Rank-
Related CVES (365 days)41
AbstractionVariant
Likelihood of exploit-

Vulnerabilities mapped to CWE-180

41 vulnerabilities1950% increase year over year

No data

No vulnerability data in CISA KEV for CWE-180

Official definition

ByMitre CWE

The product validates input before it is canonicalized.

Characteristics

Modes of introduction

  • Implementation

Common consequences

ImpactScopeExplanation
Bypass Protection MechanismAccess ControlThis prevents the product from detecting data that becomes invalid after the canonicalization step. An attacker can bypass the validation and launch attacks that expose weaknesses that would otherwise be prevented, such as injection.

Risk mitigations

  1. Input Validation · ImplementationInputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.

Representative vulnerabilities

Sources (3)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.