CVE-2025-68157 Details
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.
A policy bypass vulnerability has been identified in Webpack versions 5.49.0 prior to 5.104.0, when the 'experiments.buildHttp' feature is enabled. The issue arises in the HTTP(S) resolver, 'HttpUriPlugin', which only enforces the 'allowedUris' policy for the initial URL and fails to re-validate it after following HTTP 30x redirects. This oversight allows imports that seem to comply with the allow-list to be redirected to URLs outside of it. Consequently, this vulnerability enables server-side request forgery (SSRF) behavior at build time, where the build machine can access internal-only endpoints, and facilitates the inclusion of untrusted content in the final build outputs. The redirected content is treated as module source and bundled, with the potential for internal secrets to be leaked. This vulnerability has been patched in Webpack version 5.104.0.
Users can upgrade to Webpack version 5.104.0 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/webpack/webpack/security/advisories/GHSA-38r7-794h-5758 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| webpack.js webpack | >= 5.49.0, < 5.104.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 13, 2026 | Initial Analysis | [email protected] |
| Feb 5, 2026 | New CVE Received | [email protected] |