CVE-2026-5222CWE-647

Cargo can be coerced to share credentials between registries

Low · published May 25, 2026

CVSS v4.0
2.3
EPSS
0%
Percentile
40.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
2.3 · LOW
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
EPSS
0.00478 · 40.3th percentile
Weakness
CWE-647 · Use of Non-Canonical URL Paths for Authorization Decisions
Published
2026-05-25T08:54Z
EPSS history
Timeline
  • 25 MAY 08:54Z
    Cargo can be coerced to share credentials between registries
    cvelistv5