[Copilot] Update loader-utils dependency#2458
Merged
jawelton74 merged 7 commits intomasterfrom Apr 15, 2026
Merged
Conversation
…o users/jawelton/copilot-instructions-032526
…o users/jawelton/update-loaderutil-dependency-040326
sindhuba
approved these changes
Apr 10, 2026
vchske
approved these changes
Apr 11, 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
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.
Preview this branch
Update loader-utils to >= 1.4.2
Summary
Upgrades the
loader-utilsdependency to a minimum of v1.4.2 across the entire dependency tree. This addresses known prototype pollution vulnerabilities present in older versions (CVE-2022-37601, CVE-2022-37603).Changes
package.json: Added a"loader-utils": "1.4.2"override forless-vars-loader, which was the only package still pulling in the vulnerableloader-utils@0.2.17.patches/less-vars-loader+1.1.0.patch: Created apatch-packagepatch to fix a compatibility issue introduced by the upgrade. The olderloader-utils@0.2.xparseQuery()API accepted empty query strings, but1.4.xrequires them to start with?. The patch replacesloaderUtils.parseQuery(this.query)withloaderUtils.getOptions(this), which is the recommended API forloader-utilsv1.x.package-lock.json: Updated to reflect the resolved dependency change.Verification
npm run build:ci) passes.npm ls loader-utilsconfirms every resolved instance is now >= 1.4.2.