Skip to content

v2.0.5

Latest

Choose a tag to compare

@ericmmartin ericmmartin released this 14 Nov 17:20
d8ebeff

Security

  • fetchTranscript() and listLanguages() now reject video ID or URL inputs longer than 2048 characters with YoutubeTranscriptInvalidVideoIdError. 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