{"answers":{"affected":"8 open source packages ship an affected version, including ws.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37890 exists.","fix":"Upgrade ws to a fixed version for your release line: 5.2.4, 6.2.3, 7.5.10 or 8.17.1.","what":"CVE-2024-37890 is a high-severity denial of service vulnerability in websockets ws, published on 17 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-37890 and fix it if it is affected.\n\nWhat it is: CVE-2024-37890 is a high-severity denial of service vulnerability in websockets ws, published on 17 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-37890 exists.\n\nAffected packages and fixed versions:\n- ws (npm): affected from 2.1.0; fixed in 5.2.4\n- ws (npm): affected from 2.1.0; fixed in 5.2.4\n- ws (npm): affected from 6.0.0; fixed in 6.2.3\n- ws (npm): affected from 6.0.0; fixed in 6.2.3\n- ws (npm): affected from 7.0.0; fixed in 7.5.10\n- ws (npm): affected from 7.0.0; fixed in 7.5.10\n- ws (npm): affected from 8.0.0; fixed in 8.17.1\n- ws (npm): affected from 8.0.0; fixed in 8.17.1\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-2024-37890/ (Markdown: https://insights.sbomify.com/CVE-2024-37890/index.md)","id":"CVE-2024-37890","markdown":"https://insights.sbomify.com/CVE-2024-37890/index.md","name":"CVE-2024-37890","record":{"aliases":["AZL-42808","AZL-43600","AZL-45066","CLSA-2026-1773360970","CLSA-2026-1774225216","CLSA-2026-1785380886","CLSA-2026-1793096799","DEBIAN-CVE-2024-37890","ECHO-6481-47b9-c083","GHSA-3h5v-q93c-6h6q","MINI-9qw4-rwg7-v97w","MINI-v8qv-8cfh-rh9f","MINI-w2pf-pfcg-cfg7","RHBA-2024:9549","RHBA-2024:9550","RHBA-2025:4932","ROOT-APP-NPM-CVE-2024-37890","UBUNTU-CVE-2024-37890"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Node.js WebSocket library","requires_auth":"none","summary":"Attackers can crash a ws server by sending requests with excessive HTTP headers, affecting Node.js applications using this library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"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-476","name":"NULL Pointer Dereference"}],"description":"ws is an open source WebSocket client and server for Node.js. A request with a number of headers exceeding theserver.maxHeadersCount threshold could be used to crash a ws server. The vulnerability was fixed in ws@8.17.1 (e55e510) and backported to ws@7.5.10 (22c2876), ws@6.2.3 (eeb76d3), and ws@5.2.4 (4abd8f6). In vulnerable versions of ws, the issue can be mitigated in the following ways: 1. Reduce the maximum allowed length of the request headers using the --max-http-header-size=size and/or the maxHeaderSize options so that no more headers than the server.maxHeadersCount limit can be sent. 2. Set server.maxHeadersCount to 0 so that no limit is applied.","ecosystems":["Red Hat:enterprise_linux:10.0","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::crb","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Denial of service when handling a request with many HTTP headers in ws","id":"CVE-2024-37890","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":73,"n_references":8,"next":{"headline":"Proxy-Authorization request header isn't stripped during cross-origin redirects in urllib3","id":"CVE-2024-37891"},"packages":[{"ecosystem":"npm","fixed":["5.2.4"],"introduced":["2.1.0"],"last_affected":[],"package":"ws","purl":null,"source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["5.2.4"],"introduced":["2.1.0"],"last_affected":[],"package":"ws","purl":"pkg:npm/ws","source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["6.2.3"],"introduced":["6.0.0"],"last_affected":[],"package":"ws","purl":null,"source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["6.2.3"],"introduced":["6.0.0"],"last_affected":[],"package":"ws","purl":"pkg:npm/ws","source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["7.5.10"],"introduced":["7.0.0"],"last_affected":[],"package":"ws","purl":null,"source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["7.5.10"],"introduced":["7.0.0"],"last_affected":[],"package":"ws","purl":"pkg:npm/ws","source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["8.17.1"],"introduced":["8.0.0"],"last_affected":[],"package":"ws","purl":null,"source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"npm","fixed":["8.17.1"],"introduced":["8.0.0"],"last_affected":[],"package":"ws","purl":"pkg:npm/ws","source":"GHSA-3h5v-q93c-6h6q"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-runtime-8.0","purl":"pkg:rpm/redhat/aspnetcore-runtime-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-runtime-dbg-8.0","purl":"pkg:rpm/redhat/aspnetcore-runtime-dbg-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-targeting-pack-8.0","purl":"pkg:rpm/redhat/aspnetcore-targeting-pack-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-8.0","purl":"pkg:rpm/redhat/dotnet-apphost-pack-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-apphost-pack-8.0-debuginfo","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-8.0","purl":"pkg:rpm/redhat/dotnet-hostfxr-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-hostfxr-8.0-debuginfo","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-runtime-8.0","purl":"pkg:rpm/redhat/dotnet-runtime-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-runtime-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-runtime-8.0-debuginfo","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-runtime-dbg-8.0","purl":"pkg:rpm/redhat/dotnet-runtime-dbg-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-sdk-8.0","purl":"pkg:rpm/redhat/dotnet-sdk-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-sdk-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-sdk-8.0-debuginfo","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-sdk-8.0-source-built-artifacts","purl":"pkg:rpm/redhat/dotnet-sdk-8.0-source-built-artifacts","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-sdk-dbg-8.0","purl":"pkg:rpm/redhat/dotnet-sdk-dbg-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.13-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-targeting-pack-8.0","purl":"pkg:rpm/redhat/dotnet-targeting-pack-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet-templates-8.0","purl":"pkg:rpm/redhat/dotnet-templates-8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet8.0","purl":"pkg:rpm/redhat/dotnet8.0","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:10.0","fixed":["0:8.0.113-2.el10_0"],"introduced":["0"],"last_affected":[],"package":"dotnet8.0-debugsource","purl":"pkg:rpm/redhat/dotnet8.0-debugsource","source":"RHBA-2025:4932"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-runtime-6.0","purl":"pkg:rpm/redhat/aspnetcore-runtime-6.0","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-runtime-8.0","purl":"pkg:rpm/redhat/aspnetcore-runtime-8.0","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-runtime-dbg-8.0","purl":"pkg:rpm/redhat/aspnetcore-runtime-dbg-8.0","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-targeting-pack-6.0","purl":"pkg:rpm/redhat/aspnetcore-targeting-pack-6.0","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"aspnetcore-targeting-pack-8.0","purl":"pkg:rpm/redhat/aspnetcore-targeting-pack-8.0","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-6.0","purl":"pkg:rpm/redhat/dotnet-apphost-pack-6.0","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-6.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-apphost-pack-6.0-debuginfo","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-8.0","purl":"pkg:rpm/redhat/dotnet-apphost-pack-8.0","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-apphost-pack-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-apphost-pack-8.0-debuginfo","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-6.0","purl":"pkg:rpm/redhat/dotnet-hostfxr-6.0","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-6.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-hostfxr-6.0-debuginfo","source":"RHBA-2024:9550"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-8.0","purl":"pkg:rpm/redhat/dotnet-hostfxr-8.0","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:8.0.10-3.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-hostfxr-8.0-debuginfo","purl":"pkg:rpm/redhat/dotnet-hostfxr-8.0-debuginfo","source":"RHBA-2024:9549"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:6.0.35-2.el9_5"],"introduced":["0"],"last_affected":[],"package":"dotnet-runtime-6.0","purl":"pkg:rpm/redhat/dotnet-runtime-6.0","source":"RHBA-2024:9550"}],"prev":{"headline":"MyFinances Allows Unauthorized Access to Other Customer Data","id":"CVE-2024-37889"},"products":["ws"],"published":"2024-06-17","related":[],"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":"CC BY 4.0","name":"Red Hat","prefix":"RHBA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["websockets"]},"summary":"Attackers can crash a ws server by sending requests with excessive HTTP headers, affecting Node.js applications using this library.","url":"https://insights.sbomify.com/CVE-2024-37890/"}