Problem/Motivation
There is a new vulnerability came out a couple of weeks ago: CVE-2025-64756.
Steps to reproduce
Just execute "npm audit" inside of /web/core folder. You will get this message:
glob 10.2.0 - 10.4.5
Severity: high
glob CLI: Command injection via -c/--cmd executes matches with shell:true - https://github.com/advisories/GHSA-5j98-mcp5-4vw2
fix available via `npm audit fix --force`
Will install glob@10.5.0, which is outside the stated dependency range
Steps to reproduce
Proposed resolution
Remaining tasks
An MR for 10.6
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3562214
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3562214-backport-glob
changes, plain diff MR !15372
- 3562214-upgrade-glob-to
changes, plain diff MR !14268
Comments
Comment #2
lobodakyrylo commentedComment #3
quietone commentedI asked about this in committer slack and longwave pointed out that "glob is only used by a handful of build scripts, it's not exposed to anything else". But we agree it would good to upgrade to prevent the message from an audit.
This needs to be done on 11.x too.
Comment #5
quietone commentedComment #6
longwaveComment #7
longwaveAlso opened #3566464: Move core/package.json to the repository root to discuss moving these deps to the repo root as it's only needed for building core, not running Drupal itself.
Comment #8
quietone commentedVersion changed to use "^".
Comment #9
smustgrave commentedSeems straight forward. Do we still use the needs backport tag?
Comment #12
longwaveCommitted and pushed 44a2548e982 to 11.x and 0f86723a75a to 11.3.x. Thanks!
Let's backport this to 10.6.x as well.
Comment #14
smustgrave commentedAre we sure we want to backport? This is a major version jump on 10.6 that we weren't on 11.x
Comment #15
godotislateFor 10.6.x, we can probably bump glob to latest 10.5: https://github.com/advisories/GHSA-5j98-mcp5-4vw2
Comment #17
smustgrave commentedOkay did that!
Comment #20
godotislateCommitted 6a92fd3 and pushed to 10.6.x. Thanks!