CVE Catalog

CVE-2026-5222

MediumCVSS 6.5
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.33%

25th percentile - higher than 25% of all known CVEs

Summary

Cargo between versions 1.68 and 1.96 incorrectly normalized URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries with arbitrary names in the same domain, an attacker could obtain credentials of other users. Severity is low due to niche requirements.

Risk Assessment

Under specific conditions, an attacker can steal credentials of other registry users, potentially leading to unauthorized access to packages and source code.

Recommendation

Upgrade Cargo to version 1.97 or later, which fixes the URL normalization issue.

Other vulnerabilities in Cargo

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS