{"answers":{"affected":"2 open source packages ship an affected version, including webpack-dev-server. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-9595 in the wild and no public exploit code.","fix":"Upgrade webpack-dev-server to 5.2.5 or later.","what":"CVE-2026-9595 is a medium-severity vulnerability in webpack-dev-server, published on 15 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-9595 and fix it if it is affected.\n\nWhat it is: CVE-2026-9595 is a medium-severity vulnerability in webpack-dev-server, published on 15 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-9595 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- webpack-dev-server (npm): affected all versions; fixed in 5.2.5\n- webpack-dev-server (npm): affected all versions; fixed in 5.2.5\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-9595/ (Markdown: https://insights.sbomify.com/CVE-2026-9595/index.md)","id":"CVE-2026-9595","markdown":"https://insights.sbomify.com/CVE-2026-9595/index.md","name":"CVE-2026-9595","record":{"aliases":["CLEANSTART-2026-UI84742","CLSA-2026-1787837620","GHSA-mx8g-39q3-5c79","MINI-22f4-5pgw-hff5","MINI-g5x9-2hrg-8v6r","MINI-j9cf-gq4v-9jfc","MINI-jhjw-hgxv-qcrw","MINI-phj2-mg9m-236q","MINI-r86j-vxcp-g58q","ROOT-APP-NPM-CVE-2026-9595","UBUNTU-CVE-2026-9595"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"webpack-dev-server","requires_auth":"none","summary":"Misconfigured proxies in webpack-dev-server leak cookies and bypass origin checks by intercepting HMR WebSockets, requiring scoped proxy contexts or disabling WebSocket forwarding.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"openjs","cpe":[{"product":"webpack-dev-server","vendor":"webpack.js"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-441","name":"Unintended Proxy or Intermediary"},{"id":"CWE-346","name":"Origin Validation Error"}],"description":"Impact: When a user-configured proxy on webpack-dev-server has a broad context (e.g. /) and ws: true, it also intercepts the dev server's own HMR WebSocket and forwards it to the proxy target. This leaks the browser's cookies and Origin header to the backend, bypasses the dev server's Host/Origin validation, and corrupts the HMR socket (both HMR and the proxy end up writing to the same socket).\n\nPatches: Fixed in webpack-dev-server@5.2.5.\n\nWorkarounds: Scope user-defined proxy context to specific paths instead of /, or omit ws: true from the proxy entry when WebSocket forwarding is not required.","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":"webpack-dev-server vulnerable to HMR WebSocket interception via permissive user proxies","id":"CVE-2026-9595","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"other","year":"2026"},"n_packages":2,"n_references":5,"next":{"headline":"Deactivated guest accounts can authenticate via magic-link token in Mattermost REST API login endpoint","id":"CVE-2026-9597"},"packages":[{"ecosystem":"npm","fixed":["5.2.5"],"introduced":["0"],"last_affected":[],"package":"webpack-dev-server","purl":null,"source":"GHSA-mx8g-39q3-5c79"},{"ecosystem":"npm","fixed":["5.2.5"],"introduced":["0"],"last_affected":[],"package":"webpack-dev-server","purl":"pkg:npm/webpack-dev-server","source":"GHSA-mx8g-39q3-5c79"}],"prev":{"headline":"WP Maps \u003c= 4.9.4 - Authenticated (Admin+) Stored Cross-Site Scripting via 'location_messages' Parameter","id":"CVE-2026-9594"},"products":["webpack-dev-server"],"published":"2026-06-15","related":[{"cvss_score":8.2,"headline":"webpack-dev-server vulnerable to cross-origin WebSocket access via proxied upgrades","id":"CVE-2026-112085","kev_date_added":null,"published":"2026-10-22"},{"cvss_score":7.5,"headline":"Missing Origin Validation in webpack-dev-server","id":"CVE-2018-14732","kev_date_added":null,"published":"2018-09-21"},{"cvss_score":6.5,"headline":"webpack-dev-server users' source code may be stolen when they access a malicious web site with non-Chromium based browser","id":"CVE-2025-30360","kev_date_added":null,"published":"2025-06-03"},{"cvss_score":5.3,"headline":"webpack-dev-server vulnerable to information disclosure via Host validation bypass in the open-editor endpoint","id":"CVE-2026-114348","kev_date_added":null,"published":"2026-10-22"},{"cvss_score":5.3,"headline":"webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header","id":"CVE-2026-14631","kev_date_added":null,"published":"2026-07-03"},{"cvss_score":5.3,"headline":"webpack-dev-server vulnerable to cross-origin source code exposure on non-HTTPS origins","id":"CVE-2026-6402","kev_date_added":null,"published":"2026-05-12"}],"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-06-15","vendors":["webpack-dev-server"]},"summary":"Misconfigured proxies in webpack-dev-server leak cookies and bypass origin checks by intercepting HMR WebSockets, requiring scoped proxy contexts or disabling WebSocket forwarding.","url":"https://insights.sbomify.com/CVE-2026-9595/"}