{"answers":{"affected":"4 open source packages ship an affected version, including socket.io.","exploited":"There is no known exploitation of CVE-2024-38355 in the wild and no public exploit code.","fix":"Upgrade socket.io to a fixed version for your release line: 2.5.1 or 4.6.2.","what":"CVE-2024-38355 is a high-severity denial of service vulnerability in socketio socket.io, published on 19 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-38355 and fix it if it is affected.\n\nWhat it is: CVE-2024-38355 is a high-severity denial of service vulnerability in socketio socket.io, published on 19 Jun 2024. 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-2024-38355 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- socket.io (npm): affected all versions; fixed in 2.5.1\n- socket.io (npm): affected all versions; fixed in 2.5.1\n- socket.io (npm): affected from 3.0.0; fixed in 4.6.2\n- socket.io (npm): affected from 3.0.0; fixed in 4.6.2\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-38355/ (Markdown: https://insights.sbomify.com/CVE-2024-38355/index.md)","id":"CVE-2024-38355","markdown":"https://insights.sbomify.com/CVE-2024-38355/index.md","name":"CVE-2024-38355","record":{"aliases":["CLSA-2026-1789549941","GHSA-25hc-qcg6-38wj","ROOT-APP-NPM-CVE-2024-38355"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Socket.IO library","requires_auth":"none","summary":"A specially crafted packet causes an uncaught exception, crashing the Node.js server process. Users should upgrade Socket.IO or add error listeners.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-754","name":"Improper Check for Unusual or Exceptional Conditions"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Socket.IO is an open source, real-time, bidirectional, event-based, communication framework. A specially crafted Socket.IO packet can trigger an uncaught exception on the Socket.IO server, thus killing the Node.js process. This issue is fixed by commit `15af22fc22` which has been included in `socket.io@4.6.2` (released in May 2023). The fix was backported in the 2.x branch as well with commit `d30630ba10`. Users are advised to upgrade. Users unable to upgrade may attach a listener for the \"error\" event to catch these errors.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2025-12-23","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-23T19:09:24Z","kind":"github_poc","ref":"https://github.com/PawelMurdzek/CVE-2024-38355-PoC","stars":0,"title":"Proof of concept of CVE-2024-47554"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Unhandled 'error' event in socket.io","id":"CVE-2024-38355","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability using noneditable_regexp option","id":"CVE-2024-38356"},"packages":[{"ecosystem":"npm","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"socket.io","purl":null,"source":"GHSA-25hc-qcg6-38wj"},{"ecosystem":"npm","fixed":["2.5.1"],"introduced":["0"],"last_affected":[],"package":"socket.io","purl":"pkg:npm/socket.io","source":"GHSA-25hc-qcg6-38wj"},{"ecosystem":"npm","fixed":["4.6.2"],"introduced":["3.0.0"],"last_affected":[],"package":"socket.io","purl":null,"source":"GHSA-25hc-qcg6-38wj"},{"ecosystem":"npm","fixed":["4.6.2"],"introduced":["3.0.0"],"last_affected":[],"package":"socket.io","purl":"pkg:npm/socket.io","source":"GHSA-25hc-qcg6-38wj"}],"prev":{"headline":"Cross-site Scripting in Hackmd.io Notes lead by HTML Injection","id":"CVE-2024-38354"},"products":["socket.io"],"published":"2024-06-19","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-03","vendors":["socketio"]},"summary":"A specially crafted packet causes an uncaught exception, crashing the Node.js server process. Users should upgrade Socket.IO or add error listeners.","url":"https://insights.sbomify.com/CVE-2024-38355/"}