{"id":"UBUNTU-CVE-2020-15168","details":"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.","modified":"2025-10-24T04:48:35Z","published":"2020-09-10T19:15:00Z","upstream":["CVE-2020-15168"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-15168"},{"type":"REPORT","url":"https://github.com/node-fetch/node-fetch/security/advisories/GHSA-w7rc-rwvf-8q5r"},{"type":"REPORT","url":"https://www.npmjs.com/package/node-fetch"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-15168"}],"affected":[{"package":{"name":"node-fetch","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/node-fetch@1.7.3-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-1","1.7.3-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"node-fetch","binary_version":"1.7.3-1ubuntu0.1~esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15168.json"}},{"package":{"name":"node-fetch","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-fetch@1.7.3-2ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.3-1","1.7.3-2","1.7.3-2ubuntu0.1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.3-2ubuntu0.1","binary_name":"node-fetch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15168.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"low"}]}