CVE-2026-12151

Source
https://cve.org/CVERecord?id=CVE-2026-12151
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12151.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-12151
Aliases
Downstream
Related
Published
2026-06-17T16:05:38.785Z
Modified
2026-07-11T03:54:26.925382139Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
undici WebSocket client vulnerable to denial of service via fragment count bypass
Details

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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12151.json",
    "cna_assigner": "openjs",
    "cwe_ids": [
        "CWE-400",
        "CWE-770"
    ]
}
References

Affected packages

Git / github.com/nodejs/undici

Affected ranges

Type
GIT
Repo
https://github.com/nodejs/undici
Events
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "6.17.0"
        },
        {
            "fixed": "6.27.0"
        },
        {
            "introduced": "7.0.0"
        },
        {
            "fixed": "7.28.0"
        },
        {
            "introduced": "8.0.0"
        },
        {
            "fixed": "8.5.0"
        }
    ]
}

Affected versions

v6.*
v6.17.0
v6.18.0
v6.18.1
v6.18.2
v6.19.0
v6.19.1
v6.19.2
v6.19.3
v6.19.4
v6.19.5
v6.19.6
v6.19.7
v6.19.8
v6.20.0
v6.20.1
v6.21.0
v6.21.1
v6.21.2
v6.21.3
v6.22.0
v6.23.0
v6.24.0
v6.24.1
v6.25.0
v6.26.0
v7.*
v7.0.0
v7.1.0
v7.1.1
v7.10.0
v7.11.0
v7.12.0
v7.13.0
v7.14.0
v7.15.0
v7.16.0
v7.17.0
v7.18.0
v7.18.1
v7.18.2
v7.19.0
v7.19.1
v7.19.2
v7.2.0
v7.2.1
v7.2.2
v7.2.3
v7.20.0
v7.21.0
v7.22.0
v7.23.0
v7.24.0
v7.24.1
v7.24.2
v7.24.3
v7.24.4
v7.24.5
v7.24.6
v7.24.7
v7.24.8
v7.25.0
v7.26.0
v7.27.0
v7.27.1
v7.27.2
v7.3.0
v7.4.0
v7.5.0
v7.6.0
v7.7.0
v7.8.0
v7.9.0
v8.*
v8.0.0
v8.0.1
v8.0.2
v8.0.3
v8.1.0
v8.2.0
v8.3.0
v8.4.0
v8.4.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12151.json"