CVE-2026-5222: CWE-647 Use of Non-Canonical URL paths for authorization decisions in Rust Cargo
CVE-2026-5222 is a low-severity vulnerability in Rust Cargo version 1.68.0 where URL normalization for third-party registries using the sparse index protocol is incorrect. This flaw could allow an attacker who can publish crates in a registry hosted on a domain with multiple arbitrary-named registries to potentially obtain credentials of other users of the same registry. Exploitation requires very specific conditions, limiting the overall impact.
AI Analysis
Technical Summary
This vulnerability involves improper URL normalization in Rust Cargo's handling of third-party registries using the sparse index protocol. Specifically, in version 1.68.0, the use of non-canonical URL paths for authorization decisions can allow an attacker with publishing capabilities on a multi-registry domain to access credentials belonging to other users of that registry. The flaw is categorized under CWE-647 (Use of Non-Canonical URL paths for authorization decisions). The CVSS 4.0 base score is 2.3, indicating low severity. No official remediation or patch has been indicated in the available data.
Potential Impact
An attacker able to publish crates in a specially configured third-party registry domain could potentially obtain credentials of other users of the same registry. However, the exploit requires very specific conditions, which limits the likelihood and scope of impact. There are no known exploits in the wild. The vulnerability does not affect confidentiality, integrity, or availability broadly beyond the scoped credential exposure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround has been published as of the provided information. Users should monitor Rust Cargo advisories for updates and avoid using vulnerable versions in sensitive environments if possible.
CVE-2026-5222: CWE-647 Use of Non-Canonical URL paths for authorization decisions in Rust Cargo
Description
CVE-2026-5222 is a low-severity vulnerability in Rust Cargo version 1.68.0 where URL normalization for third-party registries using the sparse index protocol is incorrect. This flaw could allow an attacker who can publish crates in a registry hosted on a domain with multiple arbitrary-named registries to potentially obtain credentials of other users of the same registry. Exploitation requires very specific conditions, limiting the overall impact.
CVSS v4.0
Score 2.3low
Affected software
pkg:cargo/github.com/rust-lang/cargoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves improper URL normalization in Rust Cargo's handling of third-party registries using the sparse index protocol. Specifically, in version 1.68.0, the use of non-canonical URL paths for authorization decisions can allow an attacker with publishing capabilities on a multi-registry domain to access credentials belonging to other users of that registry. The flaw is categorized under CWE-647 (Use of Non-Canonical URL paths for authorization decisions). The CVSS 4.0 base score is 2.3, indicating low severity. No official remediation or patch has been indicated in the available data.
Potential Impact
An attacker able to publish crates in a specially configured third-party registry domain could potentially obtain credentials of other users of the same registry. However, the exploit requires very specific conditions, which limits the likelihood and scope of impact. There are no known exploits in the wild. The vulnerability does not affect confidentiality, integrity, or availability broadly beyond the scoped credential exposure.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or workaround has been published as of the provided information. Users should monitor Rust Cargo advisories for updates and avoid using vulnerable versions in sensitive environments if possible.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- rust
- Date Reserved
- 2026-03-31T12:07:40.168Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a141902a5ae1af1aa7fdd84
Added to database: 05/25/2026, 09:40:18 UTC
Last enriched: 06/13/2026, 10:24:28 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 91
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.