Skip to content

chore(deps): update dependency @rollup/pluginutils@4.2.1>picomatch to v2.3.2 [security]#373

Merged
FRSgit merged 2 commits into
mainfrom
renovate/npm-rollup-pluginutils@4.2.1-picomatch-vulnerability
Jun 28, 2026
Merged

chore(deps): update dependency @rollup/pluginutils@4.2.1>picomatch to v2.3.2 [security]#373
FRSgit merged 2 commits into
mainfrom
renovate/npm-rollup-pluginutils@4.2.1-picomatch-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@rollup/pluginutils@4.2.1>picomatch 2.3.12.3.2 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).


Picomatch: Method Injection in POSIX Character Classes causes incorrect Glob Matching

CVE-2026-33672 / GHSA-3v7f-55p6-f55p

More information

Details

Impact

picomatch is vulnerable to a method injection vulnerability (CWE-1321) affecting the POSIX_REGEX_SOURCE object. Because the object inherits from Object.prototype, specially crafted POSIX bracket expressions (e.g., [[:constructor:]]) can reference inherited method names. These methods are implicitly converted to strings and injected into the generated regular expression.

This leads to incorrect glob matching behavior (integrity impact), where patterns may match unintended filenames. The issue does not enable remote code execution, but it can cause security-relevant logic errors in applications that rely on glob matching for filtering, validation, or access control.

All users of affected picomatch versions that process untrusted or user-controlled glob patterns are potentially impacted.

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:

  • Sanitizing or rejecting untrusted glob patterns, especially those containing POSIX character classes like [[:...:]].

  • Avoiding the use of POSIX bracket expressions if user input is involved.

  • Manually patching the library by modifying POSIX_REGEX_SOURCE to use a null prototype:

    const POSIX_REGEX_SOURCE = {
      __proto__: null,
      alnum: 'a-zA-Z0-9',
      alpha: 'a-zA-Z',
      // ... rest unchanged
    };
    
Resources

Severity

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

References

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


Release Notes

micromatch/picomatch (@​rollup/pluginutils@4.2.1>picomatch)

v2.3.2

Compare Source

This is a security release fixing several security relevant issues.

What's Changed

Full Changelog: micromatch/picomatch@2.3.1...2.3.2


Configuration

📅 Schedule: (in timezone Europe/Warsaw)

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

🚦 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.


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

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

@renovate renovate Bot force-pushed the renovate/npm-rollup-pluginutils@4.2.1-picomatch-vulnerability branch from b59e288 to 0b899c8 Compare June 28, 2026 12:42
@renovate renovate Bot force-pushed the renovate/npm-rollup-pluginutils@4.2.1-picomatch-vulnerability branch from 0b899c8 to 01a632b Compare June 28, 2026 12:51
picomatch v2.3.2 (security fix) broke the extglob pattern *.ts+(|x)
used by rollup-plugin-typescript2@0.32.1 as its default TypeScript
file filter. Without the fix, TypeScript files are not processed by
rpt2, causing babel to fail on TypeScript syntax.

Apply a pnpm patch to rpt2 to replace *.ts+(|x) with *.{ts,tsx},
which is equivalent and works correctly in picomatch v2.3.2+.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@FRSgit FRSgit merged commit 579a89c into main Jun 28, 2026
6 checks passed
@FRSgit FRSgit deleted the renovate/npm-rollup-pluginutils@4.2.1-picomatch-vulnerability branch June 28, 2026 12:58
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.

1 participant