Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.0
Fix Suggestion:
Update to version 0.96.0
cargo (RUST):
Affected version(s) >=0.0.1 <0.97.0
Fix Suggestion:
Update to version 0.97.0
cargo (RUST):
Affected version(s) >=0.68.0 <0.96.0
Fix Suggestion:
Update to version 0.96.0
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS 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