webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior (CVE-2025-68458)
Description
Webpack versions from 5.49.0 up to but not including 5.104.1 have a vulnerability in the HTTP(S) resolver when experiments.buildHttp is enabled. This flaw allows bypassing the allowedUris allow-list by using URLs with userinfo (username:password@host), leading to build-time SSRF and untrusted content inclusion. The issue is patched in version 5.104.1.
CVSS v3.1
Score 3.7low
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Webpack's HTTP(S) resolver (HttpUriPlugin) in versions >=5.49.0 <5.104.1, when experiments.buildHttp is enabled, improperly validates allowedUris by relying on raw string prefix checks. Attackers can craft URLs containing userinfo components (e.g., username:password@host) that appear to match allowedUris but actually resolve to different hosts after URL parsing. This allows bypassing the allow-list, resulting in server-side request forgery (SSRF) during build time and inclusion of untrusted remote content as module source. The vulnerability is fixed in version 5.104.1.
Potential Impact
An attacker controlling build inputs can cause webpack to make unauthorized outbound HTTP(S) requests from the build machine to internal or external hosts not intended by the allow-list. This can lead to SSRF attacks and inclusion of untrusted code in the build output, potentially compromising build integrity. The CVSS score is 3.7 (low severity) reflecting limited impact and attack complexity.
Mitigation Recommendations
Upgrade webpack to version 5.104.1 or later where this vulnerability is patched. The vendor has provided an official fix. No other mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BREW-webpack-CVE-2025-68458
- Osv Schema Version
- 1.7.3
- Ecosystems
- ["Homebrew"]
- Cvss Version
- 3.1
Threat ID: 6ad3f5bc2cdf04f65666285b
Added to database: 10/17/2026, 22:25:00 UTC
Last enriched: 10/18/2026, 00:13:31 UTC
Last updated: 10/18/2026, 00:13:31 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.