Why are third-party scripts a risk if they come from reputable vendors?
Reputation doesn't guarantee safety. A reputable vendor can be compromised, or can pull in its own third-party dependencies you never vetted. Because the script updates on the vendor's infrastructure, a change, malicious or accidental, reaches your users without passing through your review or release process.