{"answers":{"affected":"6 open source packages ship an affected version, including undici. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-12151 in the wild and no public exploit code.","fix":"Upgrade undici to a fixed version for your release line: 6.27.0, 7.28.0 or 8.5.0.","what":"CVE-2026-12151 is a high-severity denial of service vulnerability in Nodejs Undici, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-12151 and fix it if it is affected.\n\nWhat it is: CVE-2026-12151 is a high-severity denial of service vulnerability in Nodejs Undici, published on 17 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-12151 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- undici (npm): affected all versions; fixed in 6.27.0\n- undici (npm): affected all versions; fixed in 6.27.0\n- undici (npm): affected from 7.0.0; fixed in 7.28.0\n- undici (npm): affected from 7.0.0; fixed in 7.28.0\n- undici (npm): affected from 8.0.0; fixed in 8.5.0\n- undici (npm): affected from 8.0.0; fixed in 8.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-12151/ (Markdown: https://insights.sbomify.com/CVE-2026-12151/index.md)","id":"CVE-2026-12151","markdown":"https://insights.sbomify.com/CVE-2026-12151/index.md","name":"CVE-2026-12151","record":{"aliases":["AZL-91191","CLEANSTART-2026-CY92802","CLEANSTART-2026-PM31207","DEBIAN-CVE-2026-12151","ECHO-f2ce-9c62-59ce","GHSA-vxpw-j846-p89q","MINI-3q3x-wj56-4jw2","MINI-45xp-g7vr-w6g8","MINI-4v4m-vpm3-78c2","MINI-4xrf-fwr7-vpxm","MINI-79w6-rwp9-c3f7","MINI-8pr6-vg8q-h6j9","MINI-9r4w-3fwx-q69p","MINI-frcf-52qg-rh4h","MINI-gxfr-rpwv-95wf","MINI-hvgx-wqv8-m4mc","MINI-hw7v-j98p-fc54","MINI-j843-rcj7-w7f4","MINI-jjch-78jh-77qv","MINI-mrc3-ghjg-9jcv","MINI-qv63-v4fh-hpxm","MINI-r5h3-hmrr-6m42","MINI-v9xx-rqpr-v895","MINI-x3wp-747m-7prv","MINI-xxqm-fr76-34f8","ROOT-APP-NPM-CVE-2026-12151","UBUNTU-CVE-2026-12151"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js HTTP client","requires_auth":"none","summary":"A malicious WebSocket server can cause memory exhaustion and denial of service in applications using the undici WebSocket client by sending many small fragments.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openjs","cpe":[{"product":"undici","vendor":"nodejs"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"},{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"description":"Impact:\nThe 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.\n\nAffected 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.\n\nAll releases starting at undici 6.17.0 are affected.\n\nPatches: Upgrade to undici \u003e= 6.26.0, \u003e= 7.28.0, or \u003e= 8.5.0. Workarounds:\nNo workaround is available. The fix must be applied through an upgrade.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"undici WebSocket client vulnerable to denial of service via fragment count bypass","id":"CVE-2026-12151","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":"nodejs:undici","products":["nodejs:undici"],"type":"denial_of_service","year":"2026"},"n_packages":6,"n_references":2,"next":{"headline":"Missing authorization in WP Learn Manager","id":"CVE-2026-12153"},"packages":[{"ecosystem":"npm","fixed":["6.27.0"],"introduced":["0"],"last_affected":[],"package":"undici","purl":null,"source":"GHSA-vxpw-j846-p89q"},{"ecosystem":"npm","fixed":["6.27.0"],"introduced":["0"],"last_affected":[],"package":"undici","purl":"pkg:npm/undici","source":"GHSA-vxpw-j846-p89q"},{"ecosystem":"npm","fixed":["7.28.0"],"introduced":["7.0.0"],"last_affected":[],"package":"undici","purl":null,"source":"GHSA-vxpw-j846-p89q"},{"ecosystem":"npm","fixed":["7.28.0"],"introduced":["7.0.0"],"last_affected":[],"package":"undici","purl":"pkg:npm/undici","source":"GHSA-vxpw-j846-p89q"},{"ecosystem":"npm","fixed":["8.5.0"],"introduced":["8.0.0"],"last_affected":[],"package":"undici","purl":null,"source":"GHSA-vxpw-j846-p89q"},{"ecosystem":"npm","fixed":["8.5.0"],"introduced":["8.0.0"],"last_affected":[],"package":"undici","purl":"pkg:npm/undici","source":"GHSA-vxpw-j846-p89q"}],"prev":{"headline":"IBM MQ queue manager is vulnerable to denial of service","id":"CVE-2026-12150"},"products":["undici"],"published":"2026-06-17","related":[{"cvss_score":7.5,"headline":"undici WebSocket client vulnerable to Denial of Service via failed HTTP/2 handshake","id":"CVE-2026-109855","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":7.5,"headline":"undici vulnerable to Denial of Service via unhandled error on excessive content-encodings","id":"CVE-2026-109869","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":7.5,"headline":"undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation","id":"CVE-2026-87018","kev_date_added":null,"published":"2026-10-15"},{"cvss_score":7.5,"headline":"undici vulnerable to Denial of Service via unrequested WebSocket subprotocol","id":"CVE-2026-19534","kev_date_added":null,"published":"2026-09-04"},{"cvss_score":7.5,"headline":"undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reuse","id":"CVE-2026-6734","kev_date_added":null,"published":"2026-06-17"},{"cvss_score":7.5,"headline":"undici WebSocket client vulnerable to denial of service via cumulative fragment bypass","id":"CVE-2026-9675","kev_date_added":null,"published":"2026-06-17"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-09-11","vendors":["undici"]},"summary":"A malicious WebSocket server can cause memory exhaustion and denial of service in applications using the undici WebSocket client by sending many small fragments.","url":"https://insights.sbomify.com/CVE-2026-12151/"}