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

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-05T18:35:28.000Z
- Modified: 2026-09-10T03:50:33.757Z
- Also known as: GHSA-38r7-794h-5758
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- webpack webpack: >= 5.49.0, < 5.104.0
- webpack (npm): from 5.49.0 before 5.104.0
- webpack.js webpack: from 5.49.0 before 5.104.0

## Every score

- GitHub_M: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N`

## References

- <https://github.com/webpack/webpack/security/advisories/GHSA-38r7-794h-5758> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-68157> (advisory)
- <https://github.com/webpack/webpack> (package)

## Sources

- CVE List: [CVE-2025-68157](https://www.cve.org/CVERecord?id=CVE-2025-68157), CVE Terms of Use, modified 2026-02-06
- GitHub Advisory Database: [GHSA-38r7-794h-5758](https://github.com/advisories/GHSA-38r7-794h-5758), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-68157](https://nvd.nist.gov/vuln/detail/CVE-2025-68157), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-68157 · Whole record: https://cve.day/CVE-2025-68157.json · Rebuilt by cve.day 2026-11-25T22:59:11.077Z
