Repository navigation
Security
fetchTranscript()andlistLanguages()now reject video ID or URL inputs longer than 2048 characters withYoutubeTranscriptInvalidVideoIdError. Previously, a long crafted input caused slow regular expression matching that blocked the Node.js event loop for seconds or longer. Results for inputs of 2048 characters or fewer are unchanged. All earlier versions are affected; upgrading is recommended, especially if you pass user-supplied URLs to the library. See GHSA-4p97-cxxv-r4m6 (#57, reported by James Cross)
Full changelog: v2.0.4...v2.0.5