Skip to content

[Copilot] Update loader-utils dependency#2458

Merged
jawelton74 merged 7 commits intomasterfrom
users/jawelton/update-loaderutil-dependency-040326
Apr 15, 2026
Merged

[Copilot] Update loader-utils dependency#2458
jawelton74 merged 7 commits intomasterfrom
users/jawelton/update-loaderutil-dependency-040326

Conversation

@jawelton74
Copy link
Copy Markdown
Collaborator

@jawelton74 jawelton74 commented Apr 10, 2026

Preview this branch

Update loader-utils to >= 1.4.2

Summary

Upgrades the loader-utils dependency 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 for less-vars-loader, which was the only package still pulling in the vulnerable loader-utils@0.2.17.
  • patches/less-vars-loader+1.1.0.patch: Created a patch-package patch to fix a compatibility issue introduced by the upgrade. The older loader-utils@0.2.x parseQuery() API accepted empty query strings, but 1.4.x requires them to start with ?. The patch replaces loaderUtils.parseQuery(this.query) with loaderUtils.getOptions(this), which is the recommended API for loader-utils v1.x.
  • package-lock.json: Updated to reflect the resolved dependency change.

Verification

  • Full CI build (npm run build:ci) passes.
  • All 1,682 unit tests pass.
  • npm ls loader-utils confirms every resolved instance is now >= 1.4.2.

@jawelton74 jawelton74 marked this pull request as ready for review April 10, 2026 21:54
@jawelton74 jawelton74 requested a review from a team as a code owner April 10, 2026 21:54
@jawelton74 jawelton74 changed the title [Copilot] Update load-utils dependency [Copilot] Update loader-utils dependency Apr 10, 2026
@jawelton74 jawelton74 merged commit 255919e into master Apr 15, 2026
33 checks passed
@jawelton74 jawelton74 deleted the users/jawelton/update-loaderutil-dependency-040326 branch April 15, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants