Skip to main content
VulnerabilityPublished Updated

CVE-2026-5222: Rust Cargo · Use of Non-Canonical URL paths for authorization decisions

Affects Rust CargoSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 2.3 Low : upgrade to 1.96.0 when convenient.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 4.0 base score
2.3Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 41% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.96.0
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade Cargo and cargo to 1.96.0.

Affected software

ProductAffectedFixed in
RustCargoAffected
  • >=1.68.0 <1.96.0
Fixed in
  • 1.96.0
crates.iogithub.com/rust-lang/cargopkg:cargo/github.com/rust-lang/cargoOther threatsAffected
  • =1.68.0
Fixed in–
crates.iocargopkg:cargo/cargoOther threatsAffected
  • >=1.68.0 <1.96.0
Fixed in
  • 1.96.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…