CVE-2026-5222
Published:May 25, 2026
Updated:September 25, 2026
Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severity of the vulnerability is low, due to the extremely niche requirements needed to achieve the attack.
Affected Packages
https://github.com/rust-lang/cargo.git (GITHUB):
Affected version(s) >=0.68.0 <0.96.0Fix Suggestion:
Update to version 0.96.0cargo (RUST):
Affected version(s) >=0.0.1 <0.97.0Fix Suggestion:
Update to version 0.97.0cargo (RUST):
Affected version(s) >=0.68.0 <0.96.0Fix Suggestion:
Update to version 0.96.0Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
2.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
PASSIVE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
LOW
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.7
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Use of Non-Canonical URL Paths for Authorization Decisions
EPSS
Base Score:
0.50