QID 983209

QID 983209: Nodejs (npm) Security Update for node-fetch (GHSA-w7rc-rwvf-8q5r)

Security update has been released for node-fetch to fix the vulnerability.

Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Node Fetch did not honor the `size` option after following a redirect, which means that when a content size was over the limit, a `FetchError` would never get thrown and the process would end without failure.

For most people, this fix will have a little or no impact. However, if you are relying on node-fetch to gate files above a size, the impact could be significant, for example: If you don't double-check the size of the data after `fetch()` has completed, your JS thread could get tied up doing work on a large file (DoS) and/or cost you money in computing.

  • CVSS V3 rated as Medium - 5.3 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    We released patched versions for both stable and beta channels:

    - For `v2`: 2.6.1
    - For `v3`: 3.0.0-beta.9Workaround:
    None, it is strongly recommended to update as soon as possible.
    Vendor References

    CVEs related to QID 983209

    Software Advisories
    Advisory ID Software Component Link
    GHSA-w7rc-rwvf-8q5r node-fetch URL Logo github.com/advisories/GHSA-w7rc-rwvf-8q5r