{"answers":{"affected":"2 open source packages ship an affected version, including webpack. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68157 exists.","fix":"Upgrade webpack to 5.104.0 or later.","what":"CVE-2025-68157 is a low-severity server-side request forgery vulnerability in webpack, published on 5 Feb 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-68157 and fix it if it is affected.\n\nWhat it is: CVE-2025-68157 is a low-severity server-side request forgery vulnerability in webpack, published on 5 Feb 2026. Any signed-in user can exploit it over the network, 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-68157 exists.\n\nAffected packages and fixed versions:\n- webpack (npm): affected from 5.49.0; fixed in 5.104.0\n- webpack (npm): affected from 5.49.0; fixed in 5.104.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-2025-68157/ (Markdown: https://insights.sbomify.com/CVE-2025-68157/index.md)","id":"CVE-2025-68157","markdown":"https://insights.sbomify.com/CVE-2025-68157/index.md","name":"CVE-2025-68157","record":{"aliases":["CLEANSTART-2026-KM19669","CLEANSTART-2026-OS60036","CLSA-2026-1776645369","DEBIAN-CVE-2025-68157","GHSA-38r7-794h-5758","MINI-69j2-923m-7w6v","MINI-7jfq-r6m6-qvx8","MINI-jh54-qpf6-h87c","MINI-qgpm-82q7-m94g","MINI-rjqw-rrgc-7fhj","UBUNTU-CVE-2025-68157"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JavaScript module bundler","requires_auth":"low_privilege","summary":"Webpack's HttpUriPlugin fails to re-validate allowed URIs after redirects, enabling build-time SSRF and untrusted code inclusion when buildHttp is enabled.","user_interaction":"required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"webpack","vendor":"webpack.js"}],"cvss":{"score":3.7,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"description":"Webpack is a module bundler. From version 5.49.0 to before 5.104.0, when experiments.buildHttp is enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) enforces allowedUris only for the initial URL, but does not re-validate allowedUris after following HTTP 30x redirects. As a result, an import that appears restricted to a trusted allow-list can be redirected to HTTP(S) URLs outside the allow-list. This is a policy/allow-list bypass that enables build-time SSRF behavior (requests from the build machine to internal-only endpoints, depending on network access) and untrusted content inclusion in build outputs (redirected content is treated as module source and bundled). This issue has been patched in version 5.104.0.","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 buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects","id":"CVE-2025-68157","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2025"},"n_packages":2,"n_references":1,"next":{"headline":"Authlib: 1-click Account Takeover","id":"CVE-2025-68158"},"packages":[{"ecosystem":"npm","fixed":["5.104.0"],"introduced":["5.49.0"],"last_affected":[],"package":"webpack","purl":null,"source":"GHSA-38r7-794h-5758"},{"ecosystem":"npm","fixed":["5.104.0"],"introduced":["5.49.0"],"last_affected":[],"package":"webpack","purl":"pkg:npm/webpack","source":"GHSA-38r7-794h-5758"}],"prev":{"headline":"Expr has Denial of Service via Unbounded Recursion in Builtin Functions","id":"CVE-2025-68156"},"products":["webpack"],"published":"2026-02-05","related":[{"cvss_score":9.8,"headline":"Cross-realm object access in Webpack 5","id":"CVE-2023-28154","kev_date_added":null,"published":"2023-03-13"},{"cvss_score":6.4,"headline":"DOM Clobbering Gadget found in Webpack's AutoPublicPathRuntimeModule that leads to Cross-site Scripting (XSS)","id":"CVE-2024-43788","kev_date_added":null,"published":"2024-08-27"},{"cvss_score":3.7,"headline":"webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior","id":"CVE-2025-68458","kev_date_added":null,"published":"2026-02-05"}],"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":"2026-02-06","vendors":["webpack"]},"summary":"Webpack's HttpUriPlugin fails to re-validate allowed URIs after redirects, enabling build-time SSRF and untrusted code inclusion when buildHttp is enabled.","url":"https://insights.sbomify.com/CVE-2025-68157/"}