chore(deps): update dependency webpack to v5.94.0 [security] - #370
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency webpack to v5.94.0 [security]#370renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
March 24, 2023 15:47
6fd4d0d to
7ba373f
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 3, 2023 11:05
7ba373f to
3592dd0
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 17, 2023 11:58
3592dd0 to
fff0365
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
May 28, 2023 11:48
fff0365 to
d8aff90
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
June 4, 2023 12:35
d8aff90 to
9094a88
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
June 18, 2023 08:46
b2cd86f to
4e88162
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
3 times, most recently
from
July 2, 2023 12:39
0a0f25b to
3ac97bf
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
July 9, 2023 11:22
2690651 to
a9c9b49
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
July 19, 2023 11:17
bc84f14 to
3775ec2
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
August 1, 2023 13:35
c55b2e1 to
cfcb627
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 9, 2023 14:26
cfcb627 to
f9365ef
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
August 27, 2023 08:25
24d54f7 to
0bea6d2
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
September 26, 2023 13:06
e120c71 to
9608bed
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
September 28, 2023 13:18
9608bed to
7450930
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
October 15, 2023 09:21
95a5ec7 to
0b39449
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
October 23, 2023 15:06
0b39449 to
445a9f5
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
November 6, 2023 09:27
445a9f5 to
7a5ad02
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
November 16, 2023 09:58
7a5ad02 to
19c4192
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
December 3, 2023 12:16
4ea9ed7 to
22b1b86
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 6, 2024 08:14
649c515 to
9c5cb37
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 28, 2024 09:18
9c5cb37 to
0bc52f1
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
October 9, 2024 11:28
0bc52f1 to
1956234
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
December 2, 2024 08:40
1956234 to
90ca92d
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
January 23, 2025 17:49
90ca92d to
d8d3dd5
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
January 30, 2025 19:40
d8d3dd5 to
d7a5c87
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
February 9, 2025 14:31
d7a5c87 to
0a64ebe
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
February 19, 2025 19:23
16a7021 to
763e630
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 14, 2025 00:05
763e630 to
eb8d4d7
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 24, 2025 05:50
eb8d4d7 to
bd300b2
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
May 19, 2025 20:22
bd300b2 to
35cb205
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
June 4, 2025 06:05
d30a499 to
5367bf0
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
June 22, 2025 14:06
5367bf0 to
a95de7a
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
July 2, 2025 15:30
a95de7a to
1e8b2c9
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
August 13, 2025 17:13
1e84b25 to
4d9c795
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 19, 2025 18:59
4d9c795 to
8a10e6b
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 31, 2025 14:45
8a10e6b to
1f13449
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
September 25, 2025 15:53
1f13449 to
96d3db8
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
October 16, 2025 01:09
96d3db8 to
bbeda2a
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
October 22, 2025 00:03
bbeda2a to
461c57e
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
November 10, 2025 19:51
461c57e to
4ba4749
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
November 19, 2025 00:32
4ba4749 to
9c0ea5d
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
December 3, 2025 18:14
9c0ea5d to
20af43b
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.0.0→5.94.05.14.0→5.94.0Cross-realm object access in Webpack 5
CVE-2023-28154 / GHSA-hc6q-2mpp-qw7j
More information
Details
Webpack 5 before 5.76.0 does not avoid cross-realm object access. ImportParserPlugin.js mishandles the magic comment feature. An attacker who controls a property of an untrusted object can obtain access to the real global object.
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS
CVE-2024-43788 / GHSA-4vvj-4cpr-p986
More information
Details
Summary
We discovered a DOM Clobbering vulnerability in Webpack’s
AutoPublicPathRuntimeModule. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., animgtag with an unsanitizednameattribute) are present.We found the real-world exploitation of this gadget in the Canvas LMS which allows XSS attack happens through an javascript code compiled by Webpack (the vulnerable part is from Webpack). We believe this is a severe issue. If Webpack’s code is not resilient to DOM Clobbering attacks, it could lead to significant security vulnerabilities in any web application using Webpack-compiled code.
Details
Backgrounds
DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. More for information about DOM Clobbering, here are some references:
[1] https://scnps.co/papers/sp23_domclob.pdf
[2] https://research.securitum.com/xss-in-amp4email-dom-clobbering/
Gadgets found in Webpack
We identified a DOM Clobbering vulnerability in Webpack’s
AutoPublicPathRuntimeModule. When theoutput.publicPathfield in the configuration is not set or is set toauto, the following code is generated in the bundle to dynamically resolve and load additional JavaScript files:However, this code is vulnerable to a DOM Clobbering attack. The lookup on the line with
document.currentScriptcan be shadowed by an attacker, causing it to return an attacker-controlled HTML element instead of the current script element as intended. In such a scenario, thesrcattribute of the attacker-controlled element will be used as thescriptUrland assigned to__webpack_require__.p. If additional scripts are loaded from the server,__webpack_require__.pwill be used as the base URL, pointing to the attacker's domain. This could lead to arbitrary script loading from the attacker's server, resulting in severe security risks.PoC
Please note that we have identified a real-world exploitation of this vulnerability in the Canvas LMS. Once the issue has been patched, I am willing to share more details on the exploitation. For now, I’m providing a demo to illustrate the concept.
Consider a website developer with the following two scripts,
entry.jsandimport1.js, that are compiled using Webpack:The webpack.config.js is set up as follows:
When the developer builds these scripts into a bundle and adds it to a webpage, the page could load the
import1.jsfile from the attacker's domain,attacker.controlled.server. The attacker only needs to insert animgtag with thenameattribute set tocurrentScript. This can be done through a website's feature that allows users to embed certain script-less HTML (e.g., markdown renderers, web email clients, forums) or via an HTML injection vulnerability in third-party JavaScript loaded on the page.Impact
This vulnerability can lead to cross-site scripting (XSS) on websites that include Webpack-generated files and allow users to inject certain scriptless HTML tags with improperly sanitized name or id attributes.
Patch
A possible patch to this vulnerability could refer to the Google Closure project which makes itself resistant to DOM Clobbering attack: https://github.com/google/closure-library/blob/b312823ec5f84239ff1db7526f4a75cba0420a33/closure/goog/base.js#L174
Please note that if we do not receive a response from the development team within three months, we will disclose this vulnerability to the CVE agent.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
webpack/webpack (webpack)
v5.94.0Compare Source
Bug Fixes
data/http/httpsprotocols in source mapsbigintoptimistic when browserslist not foundNew Features
webpackIgnorefornew URL()construction@importpathinfo supportSecurity
v5.93.0Compare Source
Bug Fixes
DefinePluginquieter under default log levelNew Features
binarygenerator option for asset modules to explicitly keep source maps produced by loadersmodern-modulelibrary value for tree shakable outputoverrideStrictoption to override strict or non-strict mode for javascript modulesv5.92.1Compare Source
Bug Fixes
v5.92.0Compare Source
Bug Fixes
subtractRuntimefunction for runtime logiccss/globaltype now handles the exports name@keyframeand@propertyat-rules incss/globaltypestats.hasWarnings()method now respects theignoreWarningsoptionArrayQueueiterator__webpack_exports_info__.a.b.canMangleCommonJsChunkFormatPluginpluginchunkLoadingoption to theimportwhen environment is unknown and output is modulemodulechunkFormat usedcssmodule type should not allow parser to switch modeNew Features
import attributesspec (withkeyword)node:prefix for Node.js core modules in runtime codeimportsFieldsoption for resolverInitFragmentclass for pluginscompileBooleanMatcherutil for pluginsInputFileSystemandOutputFileSystemtypesesModulegenerator option for CSS modulesv5.91.0Compare Source
Bug Fixes
unsafeCacheoption to be a proxy objectsnapshot.unmanagedPathsoptionfstypeslayer/supports/mediafor external CSS importsNew Features
__webpack_nonce__for CSS chunksfetchPriorityfor CSS chunksproductionmode by default)v5.90.3Compare Source
Bug Fixes
Stats.toJson()andStats.toString()Perf
v5.90.2Compare Source
Bug Fixes
Math.imulinfnv1a32to avoid loss of precision, directly hash UTF16 valuessetStatus()of the HMR module should not return an array, which may cause infinite recursion__webpack_exports_info__.xxx.canMangleshouldn't always same as defaultactiveStatetry/catchDependencies & Maintenance
v5.90.1Compare Source
Bug Fixes
unmanagedPathsin defaultspreOrderIndexandpostOrderIndexPerformance
compareStringsNumericnumberHashusing 32-bit FNV1a for small ranges, 64-bit for largerv5.90.0Compare Source
Bug Fixes
RemoveParentModulesPluginvia bigint arithmeticServerandDirentfetchPriorityto hmr runtime'sensureChunkfunctionoutput.environment.arrowFunctionoption/*#__PURE__*/to generatedJSON.parse()amdexternals andamdlibrarySideEffectsFlagPluginwith namespace re-exportsorstrictModuleErrorHandlingis now workingNew Features
falsefor dev server inwebpack.config.jsnode-moduleoption for thenode.__filename/__dirnameand enable it by default for ESM targetsnapshot.unmanagedPathsoptionMultiCompilerOptionstypeexportsOnlyoption to CSS generator optionsDependencies & Maintenance
Full Changelog: webpack/webpack@v5.89.0...v5.90.0
v5.89.0Compare Source
New Features
Dependencies & Maintenance
Full Changelog: webpack/webpack@v5.88.2...v5.89.0
v5.88.2Compare Source
Bug Fixes
Full Changelog: webpack/webpack@v5.88.1...v5.88.2
v5.88.1Compare Source
Developer Experience
Full Changelog: webpack/webpack@v5.88.0...v5.88.1
v5.88.0Compare Source
New Features
css/autoas the default css mode by @burhanuday in #17399Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.87.0...v5.88.0
v5.87.0Compare Source
New Features
fetchPriorityfeature as parser option and magic comment by @alexander-akait in #17249Bug Fixes
Developer Experience
Dependencies & Maintenance
New Contributors
@aboktor made their first contribution in #16991 #16989
@silverwind made their first contribution in #17339 via #17329
Full Changelog: webpack/webpack@v5.86.0...v5.87.0
v5.86.0Compare Source
New Features
ProgressPluginby @alexander-akait in #17312RegExptosplitChunks.chunksby @hyf0 in #17332Bug Fixes
ContextModuletypes by @huozhi in #17310__non_webpack_require__with ES modules by @alexander-akait in #17308Chunk,ChunkGroup, and other plugins by @alexander-akait in #1731jsextension for eval source maps when extension is not resolvable by @alexander-akait in #17331Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.85.1...v5.86.0
v5.85.1Compare Source
Bug Fixes
BasicEvaluatedExpression.getMemberRangeStartshas been changed toBasicEvaluatedExpression.getMemberRanges, please see type definition changes and the pull request for more information.Dependencies & Maintenance
Full Changelog: webpack/webpack@v5.85.0...v5.85.1
v5.85.0Compare Source
New Features
readonlycache mode by @vankop in #15470environmentin loader context by @alexander-akait in #17281addModule()support in worklets -*context.audioWorklet.addModule()by @alexander-akait in #17212Bug Fixes
Developer Experience
Dependencies & Maintenance
Full Changelog: webpack/webpack@v5.84.1...v5.85.0
v5.84.1Compare Source
Bug Fixes
Dependencies & Maintenance
Full Changelog: webpack/webpack@v5.84.0...v5.84.1
v5.84.0Compare Source
New Features
appendoption as a function by @snitin315 in #17252Bug Fixes
@importby @alexander-akait in #17229Developer Experience
JavascriptParserandModuleDependencysubclasses by @alexander-akait in #17236strict-mode quality for Configuration/Normalization objects by @alexander-akait in #17247with { type: "json" }by @alexander-akait in #17230Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.83.1...v5.84.0
v5.83.1Compare Source
Bug Fixes
Full Changelog: webpack/webpack@v5.83.0...v5.83.1
v5.83.0Compare Source
New Features
Bug Fixes
chunkgroup.groupsIterablereturn type by @TheLarkInn in #17196Developer Experience
ChunkGroupto type definitions by @TheLarkInn in #17201NormalModuleFactory'sResolveDatatype to public interface by @TheLarkInn in #17195compilation.afterChunkshook by @TheLarkInn in #17202Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.82.1...v5.83.0
v5.82.1Compare Source
Bug Fixes
importModulewhen CSS enabled by @alexander-akait in #17140output.hashFunctionwas failing to generate debug hash by @ahabhgk in #16950Developer Experience
Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.82.0...v5.82.1
v5.82.0Compare Source
New Features
Bug Fixes
media/supports/layerfrom parent CSS module by @alexander-akait in #17115#hashURL as external (similar to Parcel) by @alexander-akait in #17116Tests & Contributor Experience
Developer Experience
StringXorclass. by @TheLarkInn in #17070numberHashby @TheLarkInn in #17072JavascriptParserby @TheLarkInn in #17094BasicEvaluatedExpressionby @TheLarkInn in #17096Dependencies & Maintenance
New Contributors
Full Changelog: webpack/webpack@v5.81.0...v5.82.0
v5.81.0Compare Source
New Features
ignoreBrowserWarningsoption to ignore broConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.