CVE-2026-12151: undici WebSocket client vulnerable to denial of service via fragment count bypass

Published Jun 17, 2026
·
Updated

Impact

The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service.

Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.

All releases starting at undici 6.17.0 are affected.

Patches

Upgrade to undici v6.27.0, v7.28.0 or v8.5.0.

Workarounds

No workaround is available. The fix must be applied through an upgrade.

Other sources

Impact: The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service.

Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.

All releases starting at undici 6.17.0 are affected.

Patches: Upgrade to undici = 6.26.0, = 7.28.0, or = 8.5.0. Workarounds: No workaround is available. The fix must be applied through an upgrade.

IBM

Impact: The undici WebSocket client enforces maxPayloadSize on the cumulative byte count of fragments in a message but does not enforce a limit on the number of fragments. A malicious WebSocket server can stream many small or empty continuation frames that each pass per-frame and cumulative-size validation, collectively causing unbounded memory growth in the client process. The result is memory exhaustion and a denial of service.

Affected applications are those using the undici WebSocket client (new WebSocket(...)) or the WebSocketStream API that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.

All releases starting at undici 6.17.0 are affected.

Patches: Upgrade to undici >= 6.26.0, >= 7.28.0, or >= 8.5.0. Workarounds: No workaround is available. The fix must be applied through an upgrade.

Red Hat

Affected Software

10 affected componentsFixes available
npm/undici>=6.17.0<6.26.0, >=7.0.0<7.28.0, >=8.0.0<8.5.0
npm/undici>=8.0.0<8.5.0
8.5.0
npm/undici>=7.0.0<7.28.0
7.28.0
npm/undici<6.27.0
6.27.0
Nodejs Undici Node.js>=6.17.0<6.27.0
Nodejs Undici Node.js>=7.0.0<7.28.0
Nodejs Undici Node.js>=8.0.0<8.5.0
IBM Maximo Application Suite<=9.2
IBM Maximo Application Suite<=9.1
IBM Maximo Application Suite<=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 8.5.0
  2. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 7.28.0
  3. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 6.27.0
  4. Upgrade

    Upgrade undici WebSocket client / WebSocketStream API to a version that resolves this vulnerability.

    Fixed in 6.26.0
  5. Upgrade

    Upgrade undici WebSocket client / WebSocketStream API to a version that resolves this vulnerability.

    Fixed in 7.28.0
  6. Upgrade

    Upgrade undici WebSocket client / WebSocketStream API to a version that resolves this vulnerability.

    Fixed in 8.5.0
  7. Upgrade

    Upgrade undici WebSocket client / WebSocketStream API to a version that resolves this vulnerability.

    Fixed in 6.27.0

Event History

Jun 17, 2026
CVE Published
via MITRE·04:05 PM
Data Sourced
via MITRE·04:05 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·05:02 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Jun 19, 2026
Advisory Published
via GitHub·02:22 PM
Data Sourced
via GitHub·02:22 PM
DescriptionSeverityWeaknessAffected Software
Aug 3, 2026
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-2026-12151?

CVE-2026-12151 has a severity score of 7.5, indicating high risk.

2

What type of attack does CVE-2026-12151 facilitate?

CVE-2026-12151 enables a denial of service attack through fragment count bypass.

3

How do I fix CVE-2026-12151?

To mitigate CVE-2026-12151, update to the latest version of the undici WebSocket client that addresses this vulnerability.

4

Who is affected by CVE-2026-12151?

CVE-2026-12151 affects users of the undici WebSocket client integrated within npm packages.

5

What is the impact of CVE-2026-12151?

CVE-2026-12151 can lead to service disruption by allowing malicious servers to bypass fragment limitations.

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