3.7 LOW
- CVSS version: 3.1
- Attack vector (AV): NETWORK
- Attack complexity (AC): HIGH
- Privileges required (PR): LOW
- User interaction (UI): REQUIRED
- Scope (S): UNCHANGED
- Confidentiality impact (C): LOW
- Integrity impact (I): LOW
- Availability impact (A): NONE
webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects
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.
References
-
https://github.com/webpack/webpack/security/advisories/GHSA-38r7-794h-5758 x_refsource_CONFIRM
Affected products
- ==>= 5.49.0, < 5.104.0
Matching in nixpkgs
pkgs.webpack-cli
Webpack's Command Line Interface
pkgs.perlPackages.MojoliciousPluginWebpack
Mojolicious <3 Webpack
pkgs.perl5Packages.MojoliciousPluginWebpack
Mojolicious <3 Webpack
-
nixos-unstable -
- nixpkgs-unstable 1.02
pkgs.python312Packages.django-webpack-loader
Use webpack to generate your static bundles
-
nixos-unstable 3.1.1
pkgs.python313Packages.django-webpack-loader
Use webpack to generate your static bundles
pkgs.python314Packages.django-webpack-loader
Use webpack to generate your static bundles
pkgs.perl538Packages.MojoliciousPluginWebpack
Mojolicious <3 Webpack
-
nixos-unstable 1.02
pkgs.perl540Packages.MojoliciousPluginWebpack
Mojolicious <3 Webpack
-
nixos-unstable 1.02
Package maintainers
-
@stigtsp Stig Palmquist <stig@stig.io>
-
@peterromfeldhk Peter Romfeld <peter.romfeld.hk@gmail.com>
-
@pyrox0 Pyrox <pyrox@pyrox.dev>