Vulnerability · Published Apr 4, 2024 · Assigned by GitHub_M
CVE-2024-30261Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect
Low 2.6
In plain English
A low-severity improper access control in undici from nodejs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)2.6Low
Exploit odds (30 days)0.8%top 43.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Undici is an HTTP/1.1 client, written from scratch for Node.js. An attacker can alter the `integrity` option passed to `fetch()`, allowing `fetch()` to accept requests as valid even if they have been tampered. This vulnerability was patched in version(s) 5.28.4 and 6.11.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-undici | no fix listed | DEBIAN-CVE-2024-30261 |
| Debian:13 | node-undici | 5.28.4+dfsg1+~cs23.12.11-1 | DEBIAN-CVE-2024-30261 |
| Debian:14 | node-undici | 5.28.4+dfsg1+~cs23.12.11-1 | DEBIAN-CVE-2024-30261 |
| Ubuntu:24.04:LTS | node-undici | no fix listed | UBUNTU-CVE-2024-30261 |
| npm | undici | 5.28.4 | GHSA-9qxr-qj54-h672 |
| npm | undici | 6.11.1 | GHSA-9qxr-qj54-h672 |
Affected products (as reported)
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:L/A:N
References
- https://github.com/nodejs/undici/security/advisories/GHSA-9qxr-qj54-h672 x_refsource_CONFIRM
- https://github.com/nodejs/undici/commit/2b39440bd9ded841c93dd72138f3b1763ae26055 x_refsource_MISC
- https://github.com/nodejs/undici/commit/d542b8cd39ec1ba303f038ea26098c3f355974f3 x_refsource_MISC
- https://hackerone.com/reports/2377760 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P6Q4RGETHVYVHDIQGTJGU5AV6NJEI67E/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HQVHWAS6WDXXIU7F72XI55VZ2LTZUB33/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NC3V3HFZ5MOJRZDY5ZELL6REIRSPFROJ/
- https://security.netapp.com/advisory/ntap-20240905-0008/