chore(deps): update dependency webpack to v5.94.0 [security] - #105
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update dependency webpack to v5.94.0 [security]#105renovate[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
September 4, 2024 20:10
6c32824 to
a892a6b
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
January 30, 2025 16:10
fe6cb1f to
589e742
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
February 9, 2025 16:02
589e742 to
b256da7
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
March 3, 2025 14:47
b256da7 to
4c457cb
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
3 times, most recently
from
March 17, 2025 14:10
0060ffe to
6c72e6d
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 1, 2025 08:27
6c72e6d to
cd8830f
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 8, 2025 16:19
cd8830f to
75100cf
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 24, 2025 12:15
75100cf to
02f265a
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
May 28, 2025 11:45
e131eee to
b67b3d3
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
June 4, 2025 07:48
b67b3d3 to
5f50d4a
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
June 29, 2025 00:08
5f50d4a to
c5cc8c7
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
July 6, 2025 08:09
c5cc8c7 to
bb6bba5
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
August 13, 2025 12:37
e09e923 to
202c296
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 23, 2025 11:54
202c296 to
886825c
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 31, 2025 12:09
886825c to
d1fb923
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
September 26, 2025 07:45
d1fb923 to
1899466
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
October 21, 2025 18:11
1899466 to
b4ccb54
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
November 10, 2025 21:44
b4ccb54 to
bbeb7da
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
February 17, 2026 18:50
824e21c to
61d3f8d
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
March 5, 2026 16:44
61d3f8d to
4228f5b
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
March 13, 2026 13:54
4228f5b to
40d4645
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
3 times, most recently
from
April 1, 2026 15:51
324812d to
2e6ebe8
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 8, 2026 15:38
2e6ebe8 to
5b34bbf
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
April 29, 2026 18:07
5b34bbf to
aa55b2c
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
May 18, 2026 14:46
03bd882 to
f65bd1d
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
June 2, 2026 01:03
6960c49 to
c4238dd
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
June 11, 2026 11:12
c4238dd to
6d9e791
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
July 17, 2026 02:52
d0e185c to
bcb3ead
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
July 21, 2026 00:29
bcb3ead to
e509044
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
July 31, 2026 00:10
e509044 to
9956f05
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
August 14, 2026 22:01
d776076 to
4c34b7f
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
August 26, 2026 11:05
4c34b7f to
99410ab
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
2 times, most recently
from
September 4, 2026 00:08
ba7e5bb to
221239c
Compare
renovate
Bot
force-pushed
the
renovate/npm-webpack-vulnerability
branch
from
September 7, 2026 19:53
221239c to
843b184
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.77.0→5.94.0Webpack'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 browser console warnings in ModuleFederation by @indeediansbrett in #16388Bug Fixes
Tests & Contributor Experience
providetogetOrInsertin MapHelpers and document it better by @TheLarkInn in #17060Developer Experience
Configuration
📅 Schedule: (in timezone Europe/Zurich)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.