CVE-2024-30261: Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect

Published Apr 4, 2024
·
Updated

Impact

If an attacker can alter the integrity option passed to fetch(), they can let fetch() accept requests as valid even if they have been tampered.

Patches

Fixed in https://github.com/nodejs/undici/commit/d542b8cd39ec1ba303f038ea26098c3f355974f3. Fixes has been released in v5.28.4 and v6.11.1.

Workarounds

Ensure that integrity cannot be tampered with.

References

https://hackerone.com/reports/2377760

Other sources

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.

NVD

Undici's fetch with integrity option is too lax when algorithm is specified but hash value is in incorrect

Microsoft

Affected Software

11 affected componentsFixes available
npm/undici>=6.0.0<6.11.1
6.11.1
npm/undici<5.28.4
5.28.4
Nodejs Undici Node.js<5.28.4
Nodejs Undici Node.js>=6.0.0<6.11.1
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Fedoraproject Fedora=40
Microsoft cbl2 nodejs18 18.18.2-7
Microsoft azl3 nodejs 20.14.0-1
Microsoft azl3 nodejs 20.10.0-2
Microsoft cbl2 nodejs18 18.20.2-1

Event History

Apr 4, 2024
Advisory Published
via GitHub·02:20 PM
CVE Published
via MITRE·03:09 PM
Data Sourced
via MITRE·03:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:15 PM
RemedyAffected Software
Apr 15, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Feb 4, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-30261?

CVE-2024-30261 is considered a significant vulnerability as it allows attackers to manipulate the integrity of fetch requests.

2

How do I fix CVE-2024-30261?

To fix CVE-2024-30261, update the undici package to version 6.11.1 or later.

3

Which versions of undici are affected by CVE-2024-30261?

CVE-2024-30261 affects undici versions between 6.0.0 and 6.11.0, as well as any versions prior to 5.28.4.

4

What compatibility issues should I be aware of when addressing CVE-2024-30261?

When addressing CVE-2024-30261, ensure your application is compatible with undici version 6.11.1 or later.

5

How does CVE-2024-30261 affect fetch requests?

CVE-2024-30261 allows fetch requests to be deemed valid even if they have been tampered with, compromising data integrity.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203