Node-fetch is a lightweight module bringing the Fetch API to Node.js, offering developers a familiar and convenient way to make HTTP requests. Comparing versions 3.2.8 and 3.2.7, the core dependencies remain consistent, including "data-uri-to-buffer," "fetch-blob," and "formdata-polyfill," ensuring continued compatibility for existing projects. Similarly, the development dependencies used for testing and linting, such as "chai," "mocha," and "xo," are unchanged, indicating that the development workflow and quality assurance processes have not been significantly altered between these releases.
The most notable difference lies in the release dates. Version 3.2.8 was published on July 12, 2022, while version 3.2.7 was released on July 11, 2022. This suggests that version 3.2.8 likely incorporates bug fixes, minor enhancements, or security patches implemented shortly after the release of 3.2.7. While the underlying codebase might be largely identical, choosing version 3.2.8 ensures developers benefit from the latest refinements and potentially resolves any immediate issues discovered in the previous version. It's recommended for developers to favor the newer version to leverage potential stability improvements. The "dist" section details the tarball URL for each version. Both versions share the same "fileCount" and "unpackedSize", which is interesting.
All the vulnerabilities related to the version 3.2.8 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'
.