{"answers":{"affected":"2 open source packages ship an affected version, including webpack-dev-server. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30360 exists.","fix":"Upgrade webpack-dev-server to 5.2.1 or later.","what":"CVE-2025-30360 is a medium-severity vulnerability in webpack-dev-server, published on 3 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-30360 and fix it if it is affected.\n\nWhat it is: CVE-2025-30360 is a medium-severity vulnerability in webpack-dev-server, published on 3 Jun 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-30360 exists.\n\nAffected packages and fixed versions:\n- webpack-dev-server (npm): affected all versions; fixed in 5.2.1\n- webpack-dev-server (npm): affected all versions; fixed in 5.2.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-2025-30360/ (Markdown: https://insights.sbomify.com/CVE-2025-30360/index.md)","id":"CVE-2025-30360","markdown":"https://insights.sbomify.com/CVE-2025-30360/index.md","name":"CVE-2025-30360","record":{"aliases":["CLEANSTART-2026-HE65111","CLEANSTART-2026-YT66630","GHSA-9jgg-88mc-972h","MINI-cgh5-67qh-qf5r","MINI-whq3-x92q-fj72","ROOT-APP-NPM-CVE-2025-30360"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"webpack-dev-server","requires_auth":"none","summary":"Attackers can steal source code from developers using webpack-dev-server by bypassing Origin header checks via IP-based origins in non-Chromium browsers.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"webpack-dev-server","vendor":"webpack.js"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"description":"webpack-dev-server allows users to use webpack with a development server that provides live reloading. Prior to version 5.2.1, webpack-dev-server users' source code may be stolen when you access a malicious web site with non-Chromium based browser. The `Origin` header is checked to prevent Cross-site WebSocket hijacking from happening, which was reported by CVE-2018-14732. But webpack-dev-server always allows IP address `Origin` headers. This allows websites that are served on IP addresses to connect WebSocket. An attacker can obtain source code via a method similar to that used to exploit CVE-2018-14732. Version 5.2.1 contains a patch for the issue.","ecosystems":["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":"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","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2025"},"n_packages":2,"n_references":4,"next":{"headline":"WeGIA Vulnerable to Broken Authentication - Old Password Validation","id":"CVE-2025-30361"},"packages":[{"ecosystem":"npm","fixed":["5.2.1"],"introduced":["0"],"last_affected":[],"package":"webpack-dev-server","purl":null,"source":"GHSA-9jgg-88mc-972h"},{"ecosystem":"npm","fixed":["5.2.1"],"introduced":["0"],"last_affected":[],"package":"webpack-dev-server","purl":"pkg:npm/webpack-dev-server","source":"GHSA-9jgg-88mc-972h"}],"prev":{"headline":"webpack-dev-server users' source code may be stolen when they access a malicious web site","id":"CVE-2025-30359"},"products":["webpack-dev-server"],"published":"2025-06-03","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":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 HMR WebSocket interception via permissive user proxies","id":"CVE-2026-9595","kev_date_added":null,"published":"2026-06-15"},{"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-03","vendors":["webpack"]},"summary":"Attackers can steal source code from developers using webpack-dev-server by bypassing Origin header checks via IP-based origins in non-Chromium browsers.","url":"https://insights.sbomify.com/CVE-2025-30360/"}