Skip to content

Update dependency picomatch to v4.0.4 [SECURITY]#523

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-picomatch-vulnerability
Open

Update dependency picomatch to v4.0.4 [SECURITY]#523
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-picomatch-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Mar 26, 2026

This PR contains the following updates:

Package Change Age Confidence
picomatch 4.0.14.0.4 age confidence

Picomatch has a ReDoS vulnerability via extglob quantifiers

CVE-2026-33671 / GHSA-c2c7-rcm5-vvqj

More information

Details

Impact

picomatch is vulnerable to Regular Expression Denial of Service (ReDoS) when processing crafted extglob patterns. Certain patterns using extglob quantifiers such as +() and *(), especially when combined with overlapping alternatives or nested extglobs, are compiled into regular expressions that can exhibit catastrophic backtracking on non-matching input.

Examples of problematic patterns include +(a|aa), +(*|?), +(+(a)), *(+(a)), and +(+(+(a))). In local reproduction, these patterns caused multi-second event-loop blocking with relatively short inputs. For example, +(a|aa) compiled to ^(?:(?=.)(?:a|aa)+)$ and took about 2 seconds to reject a 41-character non-matching input, while nested patterns such as +(+(a)) and *(+(a)) took around 29 seconds to reject a 33-character input on a modern M1 MacBook.

Applications are impacted when they allow untrusted users to supply glob patterns that are passed to picomatch for compilation or matching. In those cases, an attacker can cause excessive CPU consumption and block the Node.js event loop, resulting in a denial of service. Applications that only use trusted, developer-controlled glob patterns are much less likely to be exposed in a security-relevant way.

Patches

This issue is fixed in picomatch 4.0.4, 3.0.2 and 2.3.2.

Users should upgrade to one of these versions or later, depending on their supported release line.

Workarounds

If upgrading is not immediately possible, avoid passing untrusted glob patterns to picomatch.

Possible mitigations include:

  • disable extglob support for untrusted patterns by using noextglob: true
  • reject or sanitize patterns containing nested extglobs or extglob quantifiers such as +() and *()
  • enforce strict allowlists for accepted pattern syntax
  • run matching in an isolated worker or separate process with time and resource limits
  • apply application-level request throttling and input validation for any endpoint that accepts glob patterns
Resources

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

micromatch/picomatch (picomatch)

v4.0.4

Compare Source

This is a security release fixing several security relevant issues.

What's Changed

Full Changelog: micromatch/picomatch@4.0.3...4.0.4

v4.0.3

Compare Source

v4.0.2

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • ""
  • Automerge
    • At any time (no schedule defined)

🚦 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 this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 26, 2026

⚠️ No Changeset found

Latest commit: 2492bfc

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
wallet-api-wallet-api-tools Ready Ready Preview, Comment May 18, 2026 8:41pm

Request Review

@renovate renovate Bot force-pushed the renovate/npm-picomatch-vulnerability branch from 072f8ab to 7472e4a Compare April 1, 2026 19:53
@renovate renovate Bot changed the title chore(deps): update dependency picomatch to v4.0.4 [security] Update dependency picomatch to v4.0.4 [SECURITY] Apr 8, 2026
@renovate renovate Bot force-pushed the renovate/npm-picomatch-vulnerability branch from 7472e4a to 6a37499 Compare April 8, 2026 17:16
@renovate renovate Bot requested review from a team, ComradeAERGO and Justkant as code owners April 8, 2026 17:16
@renovate renovate Bot changed the title Update dependency picomatch to v4.0.4 [SECURITY] Update dependency picomatch to v4.0.4 [SECURITY] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot deleted the renovate/npm-picomatch-vulnerability branch April 27, 2026 18:52
@renovate renovate Bot changed the title Update dependency picomatch to v4.0.4 [SECURITY] - autoclosed Update dependency picomatch to v4.0.4 [SECURITY] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate renovate Bot force-pushed the renovate/npm-picomatch-vulnerability branch 2 times, most recently from 6a37499 to 0aa4d0d Compare April 27, 2026 23:29
@renovate renovate Bot force-pushed the renovate/npm-picomatch-vulnerability branch from 0aa4d0d to 61e1620 Compare May 12, 2026 09:14
@renovate renovate Bot force-pushed the renovate/npm-picomatch-vulnerability branch from 61e1620 to 2492bfc Compare May 18, 2026 20:40
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.

0 participants