Node-fetch is a lightweight module that brings the Fetch API, a standard interface for making web requests, to Node.js environments. Comparing versions 3.2.5 and 3.2.4, the core dependencies remain consistent, including data-uri-to-buffer, fetch-blob, and formdata-polyfill, ensuring continued compatibility with existing projects. Similarly, the development dependencies used for testing and development, such as chai, mocha, c8 for code coverage, and xo for linting, are unchanged. This suggests a focus on stability and incremental improvements.
The key difference lies in the dist section, specifically the unpackedSize and releaseDate. Version 3.2.5 has an unpacked size of 105945 bytes, slightly larger than version 3.2.4's 105883 bytes. This minor size increase could indicate bug fixes, performance optimizations, or small feature additions. Consider the release dates, version 3.2.5 was released on June 1st, 2022, after version 3.2.4, released on April 28th, 2022, confirming the newer version incorporates updates done after the previous one. For developers, upgrading to 3.2.5 is likely a safe move, benefiting from potential bug fixes and minor improvements without introducing breaking changes indicated by the consistent dependencies. It's always recommended to review the specific changelog or release notes for Node-fetch to gain a deeper understanding of the precise changes implemented between these versions.
All the vulnerabilities related to the version 3.2.5 of the package
node-fetch Inefficient Regular Expression Complexity
node-fetch is a light-weight module that brings window.fetch to node.js.
Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the isOriginPotentiallyTrustworthy()
function in referrer.js
, when processing a URL string with alternating letters and periods, such as 'http://' + 'a.a.'.repeat(i) + 'a'
.