GHSA-9f24-jqhm-jfcw

Suggest an improvement
Source
https://github.com/advisories/GHSA-9f24-jqhm-jfcw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/02/GHSA-9f24-jqhm-jfcw/GHSA-9f24-jqhm-jfcw.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-9f24-jqhm-jfcw
Aliases
Related
Published
2024-02-16T15:59:38Z
Modified
2024-04-19T09:30:47Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
fetch(url) leads to a memory leak in undici
Details

Impact

Calling fetch(url) and not consuming the incoming body ((or consuming it very slowing) will lead to a memory leak.

Patches

Patched in v6.6.1

Workarounds

Make sure to always consume the incoming body.

Database specific
{
    "nvd_published_at": "2024-02-16T22:15:07Z",
    "cwe_ids": [
        "CWE-400",
        "CWE-401"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2024-02-16T15:59:38Z"
}
References

Affected packages

npm / undici

Package

Affected ranges

Type
SEMVER
Events
Introduced
6.0.0
Fixed
6.6.1

Ecosystem specific

{
    "affected_functions": [
        "fetch()"
    ]
}

Database specific

{
    "last_known_affected_version_range": "<= 6.6.0"
}