CVE-2025-68157 webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects

Low 3.7 Published Updated

Webpack's HttpUriPlugin fails to re-validate allowed URIs after redirects, enabling build-time SSRF and untrusted code inclusion when buildHttp is enabled.

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-68157?

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

Weakness: CWE-918

Which versions are affected by CVE-2025-68157?

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

PackageAffectedFixed in
webpack npmFrom 5.49.05.104.0
webpack npmFrom 5.49.05.104.0

Products include Webpack.js Webpack.

How do I fix CVE-2025-68157?

Upgrade webpack to 5.104.0 or later.

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

Is CVE-2025-68157 being exploited?

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

Sources

Also known as CLEANSTART-2026-KM19669, CLEANSTART-2026-OS60036, CLSA-2026-1776645369, DEBIAN-CVE-2025-68157, GHSA-38r7-794h-5758, MINI-69j2-923m-7w6v and 5 more.

Is CVE-2025-68157 in your software?

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

Check your SBOMs for free