{"cve":"CVE-2026-5222","nvd":{"published":"2026-05-25T10:16:15.273","modified":"2026-07-23T17:10:00.123","status":"Analyzed","description":"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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N","score":2.3},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-647"],"references":["https://blog.rust-lang.org/2026/05/25/cve-2026-5222/","https://github.com/rust-lang/cargo/pull/17031","https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s"],"products":["rust-lang:cargo"],"source":"nvd","synced_at":"2026-10-19T22:36:28.938604137+00:00"},"epss":{"cve":"CVE-2026-5222","score":0.00478,"percentile":0.41259,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p688-r7jv-fm6f","url":"https://osv.dev/vulnerability/GHSA-p688-r7jv-fm6f","summary":"Cargo can be coerced to share credentials between registries","modified":"2026-06-26T22:11:30.823511Z","packages":[{"ecosystem":"crates.io","name":"cargo","purl":"pkg:cargo/cargo","ranges":["<0.97.0"],"fixed":["0.97.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}