Rust 1.96.0 (May 28, 2026) blocks symlink extraction in Cargo to prevent cross-crate cache poisoning on third-party registries.
Summary
Third-party registry users face cache hijacking risk where a malicious crate overwrites another crate's source via symlink traversal. This fix eliminates the attack vector without workflow changes since cargo package and cargo publish never created symlinks.
Why it matters
Third-party registry users face cache hijacking risk where a malicious crate overwrites another crate's source via symlink traversal. This fix eliminates the attack vector without workflow changes since cargo package and cargo publish never created symlinks.
Implementation verdict
Upgrade to Rust 1.96.0 when released. No code changes required. For pre-1.96.0: audit your registry for symlinks and configure rejection if supported. Low friction—symlinks are not part of normal Cargo workflows.
Sources
Dev Signal
Get briefs like this in your inbox — free, every weekday.
100+ sources compressed into one 4-minute read. Ranked, cited, implementation-ready.