CVE-2025-68458 webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior

Low 3.7 Published Updated

Attackers can bypass allow-lists in webpack's buildHttp feature to perform SSRF and inject malicious code during the build process.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-68458?

CVE-2025-68458 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.

Official description

Webpack is a module bundler. From version 5.49.0 to before 5.104.1, when experiments.buildHttp is enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) can be bypassed to fetch resources from hosts outside allowedUris by using crafted URLs that include userinfo (username:password@host). If allowedUris enforcement relies on a raw string prefix check (e.g., uri.startsWith(allowed)), a URL that looks allow-listed can pass validation while the actual network request is sent to a different authority/host after URL parsing. This is a policy/allow-list bypass that enables build-time SSRF behavior (outbound requests from the build machine to internal-only endpoints, depending on network access) and untrusted content inclusion (the fetched response is treated as module source and bundled). This issue has been patched in version 5.104.1.

Weakness: CWE-918

Which versions are affected by CVE-2025-68458?

2 open source packages ship an affected version, including webpack. It affects 1 product.

PackageAffectedFixed in
webpack npmFrom 5.49.05.104.1
webpack npmFrom 5.49.05.104.1

Products include Webpack.js Webpack.

How do I fix CVE-2025-68458?

Upgrade webpack to 5.104.1 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2025-68458 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68458 exists.

Sources

Also known as CLEANSTART-2026-DS59856, CLEANSTART-2026-HJ02276, DEBIAN-CVE-2025-68458, GHSA-8fgc-7cc6-rx7x, MINI-5j58-wfhq-w9h8, MINI-6m8v-253c-r3xg and 4 more.

Is CVE-2025-68458 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free