---
title: "CWE-551: Incorrect Behavior Order: Authorization Before Parsing and Canonicalization"
url: https://radicalnotion.ai/cwe/cwe-551
type: cwe
description: "If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-551: Incorrect Behavior Order: Authorization Before Parsing and Canonicalization

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

## Description

If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection.

For instance, the character strings /./ and / both mean current directory. If /SomeDirectory is a protected directory and an attacker requests /./SomeDirectory, the attacker may be able to gain access to the resource if /./ is not converted to / before the authorization check is performed.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | REALIZATION: This weakness is caused during implementation of an architectural security tactic. |

## Applicable platforms

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism | - |

## Potential mitigations

### Architecture and Design

URL Inputs should be decoded and canonicalized to the application's current internal representation before being validated and processed for authorization. Make sure that your application does not decode the same input twice. Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked.

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-23924 | URI validation failure on SVG parsing in Dompdf | critical | 10.0 | - | No | 2023-01-31 |
| CVE-2016-20030 | ZKTeco ZKBioSecurity 3.0 User Enumeration via authLoginAction | critical | 9.3 | - | No | 2026-03-15 |
| CVE-2021-32779 | Incorrectly handling of URI '#fragment' element as part of the path element | high | 8.6 | - | No | 2021-08-24 |
| CVE-2021-32777 | Incorrect concatenation of multiple value request headers in ext-authz extension | high | 8.6 | - | No | 2021-08-24 |
| CVE-2026-72243 | selinux: check connect-related permissions on TCP Fast Open | high | 8.4 | - | No | 2026-08-15 |
| CVE-2026-16102 | Keycloak-services: keycloak-services: default dcr policy allows role forgery via user property mappers | high | 8.1 | - | No | 2026-08-05 |
| CVE-2026-15573 | Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcher | high | 8.1 | - | No | 2026-08-05 |
| CVE-2026-4636 | Keycloak: keycloak: uma policy bypass allows authenticated users to gain unauthorized access to victim-owned resources. | high | 8.1 | - | No | 2026-04-02 |
| CVE-2026-89060 | Stolostron/multicluster-observability-addon: cross-namespace secret disclosure in multicluster-observability-addon via unvalidated configuration references | high | 7.7 | - | No | 2026-09-11 |
| CVE-2026-57920 | - | high | 7.7 | - | No | 2026-06-26 |
| CVE-2026-106579 | ImageMagick: Policy Bypass when using coder as the domain. | high | 7.5 | - | No | 2026-10-07 |
| CVE-2026-87743 | Quarkus-vertx-http: authorization bypass via path normalization discrepancy in quarkus http security | high | 7.5 | - | No | 2026-09-18 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-696](https://radicalnotion.ai/cwe/cwe-696) | Incorrect Behavior Order |
| Parent | [CWE-863](https://radicalnotion.ai/cwe/cwe-863) | Incorrect Authorization |
| Peer | [CWE-41](https://radicalnotion.ai/cwe/cwe-41) | Improper Resolution of Path Equivalence |

## Frequently asked questions

### What is CWE-551?

If a web server does not fully parse requested URLs before it examines them for authorization, it may be possible for an attacker to bypass authorization protection.

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

16 recorded CVEs are attributed to CWE-551, including CVE-2023-23924, CVE-2016-20030 and CVE-2021-32779.

### How do you prevent CWE-551?

URL Inputs should be decoded and canonicalized to the application's current internal representation before being validated and processed for authorization. Make sure that your application does not decode the same input twice. Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked.

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

Exploiting CWE-551 can lead to: Bypass Protection Mechanism.

### Is CWE-551 actively exploited?

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

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

---

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