r/programming 12d ago

Supply chain attack on arrayref

https://blog.rust-lang.org/2026/08/20/supply-chain-attack-on-arrayref/
190 Upvotes

65 comments sorted by

View all comments

114

u/piesou 12d ago edited 12d ago

Was only a question of time. Rust has the same mindset as Node/NPM.

PS: for the screaming crowd: yes, anyone can get supply chain attacked. HOWEVER:

  • If you have a proper stdlib, chances are, you don't have a lot of dependencies
  • If you have less dependencies, the chance of supply chain attacks drops significantly
  • If you have well established dependencies like Spring, their security practices are very likely better than a rando off the internet

What does that mean for Rust? They don't need to just work on the language, they need to provide a larger ecosystem as well. How they do it is up to them.

6

u/Somepotato 12d ago

There's not a single batteries included language out there that the majority of its users don't rely on packages. Dot NET is one of the only ones I see making a big effort to improve their std library.

2

u/EdwinYZW 11d ago

C++? It doesn't even have a package manager.

4

u/Somepotato 11d ago

True but C++ dependency management is also absolute hell

2

u/EdwinYZW 11d ago

The C++ standard doesn't have dependency. So there is no dependency hell from the language itself.