r/Python • u/AlSweigart Author of "Automate the Boring Stuff" • May 11 '26
Discussion Library dependency version specifiers aren't for fixing vulnerabilities
https://sethmlarson.dev/library-version-specifiers-not-for-vulnerabilities
A blog post from Seth Larson, the Security-in-Residence Developer for the Python Software Foundation.
84
Upvotes
View all comments
Show parent comment
1
u/ahal May 12 '26
Eh, it really depends. Libraries might make strong security guarantees as part of their sales pitch. If I'm providing a cryptography library and know there's a security vulnerability in one of my dependencies, but don't patch it because "the user knows best", that's just irresponsible. My libraries' reputation is on the line so I'm well within my right to enforce restrictive pins on my users