CVE-2025-68157
CVE-2025-68157 · webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 3.7 · Low · EPSS 0.2% · Fix available
- Published
- Updated
Affected products and versions
webpack
- Versions
- >= 5.49.0, < 5.104.0: Affected
No fix published
node-webpack Debian:12
- Versions
- 5.105.4+dfsg1+~cs15.13.23-1
- 5.105.4+dfsg1+~cs15.13.23-2
- 5.105.4+dfsg1+~cs15.13.23-3
- 5.106.2+dfsg1+~cs15.15.23-1
- 5.106.2+dfsg1+~cs15.15.23-2
- 5.106.2+dfsg1+~cs15.15.23-3
- 5.107.2+dfsg1+~cs15.16.25-1
- 5.107.2+dfsg1+~cs15.16.25-1.1
- 5.107.2+dfsg1+~cs15.16.25-2
- 5.108.0+dfsg1+~cs14.7.20-1
- 5.108.0+dfsg1+~cs14.7.20-2
- 5.108.0+dfsg1+~cs14.7.20-3
- 5.75.0+dfsg+~cs17.16.14-1
- 5.75.0+dfsg+~cs17.16.14-1+deb12u1
- 5.76.1+dfsg1+~cs17.16.16-1
- 5.76.1+dfsg2+~cs10.8.15-2
- 5.76.1+dfsg2+~cs10.8.15-3
- 5.94.0+dfsg1+~cs11.18.26-1
- 5.94.0+dfsg1+~cs11.18.26-2
- 5.95.0+dfsg1+~cs11.18.26-1
- 5.96.1+dfsg1+~cs11.18.26-1
- 5.97.1+dfsg1+~cs11.18.27-1
- 5.97.1+dfsg1+~cs11.18.27-2
- 5.97.1+dfsg1+~cs11.18.27-3
- 5.97.1+dfsg1+~cs11.18.27-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Debian:13
- Versions
- 5.105.4+dfsg1+~cs15.13.23-1
- 5.105.4+dfsg1+~cs15.13.23-2
- 5.105.4+dfsg1+~cs15.13.23-3
- 5.106.2+dfsg1+~cs15.15.23-1
- 5.106.2+dfsg1+~cs15.15.23-2
- 5.106.2+dfsg1+~cs15.15.23-3
- 5.107.2+dfsg1+~cs15.16.25-1
- 5.107.2+dfsg1+~cs15.16.25-1.1
- 5.107.2+dfsg1+~cs15.16.25-2
- 5.108.0+dfsg1+~cs14.7.20-1
- 5.108.0+dfsg1+~cs14.7.20-2
- 5.108.0+dfsg1+~cs14.7.20-3
- 5.97.1+dfsg1+~cs11.18.27-3
- 5.97.1+dfsg1+~cs11.18.27-4
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Debian:14
- Versions
- 5.105.4+dfsg1+~cs15.13.23-1
- 5.97.1+dfsg1+~cs11.18.27-3
- 5.97.1+dfsg1+~cs11.18.27-4
- Affected ranges
- ECOSYSTEM: < 5.105.4+dfsg1+~cs15.13.23-2
Update to 5.105.4+dfsg1+~cs15.13.23-2
webpack npm
- Affected ranges
- SEMVER: ≥ 5.49.0, < 5.104.0
Update to 5.104.0
node-webpack Ubuntu:18.04:LTS
- Versions
- 3.5.6-1build3
- 3.5.6-1build4
- 3.5.6-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:20.04:LTS
- Versions
- 4.7.0-3
- 4.30.0-7
- 4.30.0-9
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:22.04:LTS
- Versions
- 4.43.0-6build4
- 4.43.0-7
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:24.04:LTS
- Versions
- 5.76.1+dfsg1+~cs17.16.16-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:25.10
- Versions
- 5.97.1+dfsg1+~cs11.18.27-2
- 5.97.1+dfsg1+~cs11.18.27-3
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:26.10
- Versions
- 5.105.4+dfsg1+~cs15.13.23-2
- 5.108.0+dfsg1+~cs14.7.20-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
node-webpack Ubuntu:26.04:LTS
- Versions
- 5.97.1+dfsg1+~cs11.18.27-3
- 5.97.1+dfsg1+~cs11.18.27-4
- 5.105.4+dfsg1+~cs15.13.23-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published