p PatchFirst

CVE-2020-15168

CVE-2020-15168 · File size limit bypass in node-fetch

CVSS 2.6 · Low · EPSS 1.7% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-fetch"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

node-fetch before versions 2.6.1 and 3.0.0-beta.9 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.

Published
Updated

Fixes in distributions

  • SUSE-SU-2020:3235-1 · SUSE Manager Proxy Module 4.1, SUSE Manager Server Module 4.1 ·

Stack: system · node

Affected products and versions

  • node-fetch

    Versions
    • <2.6.1: Affected
    • >3.0.0-beta.1, <3.0.0-beta.9: Affected

    No fix published

  • node-fetch Debian 12

    Affected ranges
    • ECOSYSTEM: < 2.6.1-2

    Update to 2.6.1-2

  • node-fetch Debian 13

    Affected ranges
    • ECOSYSTEM: < 2.6.1-2

    Update to 2.6.1-2

  • node-fetch Debian 14

    Affected ranges
    • ECOSYSTEM: < 2.6.1-2

    Update to 2.6.1-2

  • node-fetch npm

    Affected ranges
    • SEMVER: ≥ 2.0.0, < 2.6.1

    Update to 2.6.1

  • node-fetch npm

    Affected ranges
    • SEMVER: ≥ 3.0.0-beta.1, < 3.0.0-beta.9

    Update to 3.0.0-beta.9

  • node-fetch Ubuntu Pro 18.04 LTS

    Versions
    • 1.7.3-1
    • 1.7.3-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-fetch Ubuntu 20.04 LTS

    Versions
    • 1.7.3-1
    • 1.7.3-2
    • 1.7.3-2ubuntu0.1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →