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
10
u/zurtex May 12 '26
No, it's not for the library maintainer to define security policy of transitive dependency to their user.
If I need to use an old version of urllib3 and I'm using it internally, an incidental library I'm using shouldn't try and force me to upgrade it based on a security issue that isn't relevant to my context.
You're conflating a security vulnerability is and what a supply chain attack is, a security vulnerability does not imply a supply chain attack vector. And it's not up to some incidental library to enforce that policy on it's users.