Use of Non-Canonical URL Paths for Authorization Decisions Affecting cargo package, versions >=0.0.0


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-CARGO-16874178
  • published25 May 2026
  • disclosed25 May 2026
  • creditUnknown

Introduced: 25 May 2026

NewCVE-2026-5222  (opens in a new tab)
CWE-647  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

cargo is a Cargo, a package manager for Rust.

Affected versions of this package are vulnerable to Use of Non-Canonical URL Paths for Authorization Decisions in the URL normalization process for third-party registries using the sparse index protocol. An attacker can access credentials belonging to other users by publishing crates in a registry hosted on a provider that allows multiple registries with arbitrary names within the same domain. This is only exploitable if the hosting provider permits multiple registries with arbitrary names on the same domain and the attacker can publish crates in such a registry.

CVSS Base Scores

version 4.0
version 3.1