webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
webpacknpm | >= 5.49.0, < 5.104.0 | 5.104.0 |
Affected products
16- osv-coords15 versionspkg:apk/chainguard/gitlab-rails-ce-19.0pkg:apk/chainguard/gitlab-rails-ce-fips-18.1pkg:apk/chainguard/gitlab-rails-ce-fips-19.1pkg:apk/chainguard/langfuse-2pkg:apk/chainguard/langfuse-2-workerpkg:apk/chainguard/langfuse-3pkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-2pkg:apk/chainguard/langfuse-fips-2-workerpkg:apk/chainguard/langfuse-fips-3pkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/librechatpkg:apk/wolfi/langfuse-3pkg:apk/wolfi/langfuse-3-workerpkg:npm/webpack
< 19.0.3-r1+ 14 more
- (no CPE)range: < 19.0.3-r1
- (no CPE)range: < 18.1.6-r15
- (no CPE)range: < 19.1.1-r1
- (no CPE)range: < 2.95.12-r10
- (no CPE)range: < 2.95.12-r10
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: < 2.95.12-r14
- (no CPE)range: < 2.95.12-r14
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: < 0.8.2-r2
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: < 3.155.1-r2
- (no CPE)range: >= 5.49.0, < 5.104.0
Patches
Vulnerability mechanics
References
3- github.com/advisories/GHSA-38r7-794h-5758ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-68157ghsaADVISORY
- github.com/webpack/webpack/security/advisories/GHSA-38r7-794h-5758ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.