Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency micromatch to v4.0.8 [security] #15301

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
micromatch 4.0.7 -> 4.0.8 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2024-4067

The NPM package micromatch prior to version 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in micromatch.braces() in index.js because the pattern .* will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persisted prior to https://github.com/micromatch/micromatch/pull/266. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.


Release Notes

micromatch/micromatch (micromatch)

v4.0.8

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), 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 these updates again.


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

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

Copy link

netlify bot commented Sep 12, 2024

Deploy Preview for jestjs ready!

Name Link
🔨 Latest commit fa72946
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/66e24aaa6f9efe0008823b44
😎 Deploy Preview https://deploy-preview-15301--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@gustawdaniel-statscore
Copy link

┌─────────────────────┬────────────────────────────────────────────────────────┐
│ high                │ Uncontrolled resource consumption in braces            │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package             │ braces                                                 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ <3.0.3                                                 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions    │ >=3.0.3                                                │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths               │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/environment@30.0.0-alpha.3 >                     │
│                     │ @jest/fake-timers@30.0.0-alpha.3 >                     │
│                     │ jest-message-util@30.0.0-alpha.3 > micromatch@4.0.5 >  │
│                     │ braces@3.0.2                                           │
│                     │                                                        │
│                     │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/expect@30.0.0-alpha.3 > expect@30.0.0-alpha.3 >  │
│                     │ jest-message-util@30.0.0-alpha.3 > micromatch@4.0.5 >  │
│                     │ braces@3.0.2                                           │
│                     │                                                        │
│                     │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/expect@30.0.0-alpha.3 >                          │
│                     │ jest-snapshot@30.0.0-alpha.3 >                         │
│                     │ @jest/transform@30.0.0-alpha.3 >                       │
│                     │ jest-haste-map@30.0.0-alpha.3 > micromatch@4.0.5 >     │
│                     │ braces@3.0.2                                           │
│                     │                                                        │
│                     │ ... Found 755 paths, run `pnpm why braces` for more    │
│                     │ information                                            │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info           │ https://github.com/advisories/GHSA-grv7-fg5c-xmjg      │
└─────────────────────┴────────────────────────────────────────────────────────┘
┌─────────────────────┬────────────────────────────────────────────────────────┐
│ moderate            │ Regular Expression Denial of Service (ReDoS) in        │
│                     │ micromatch                                             │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Package             │ micromatch                                             │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Vulnerable versions │ <4.0.8                                                 │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Patched versions    │ >=4.0.8                                                │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ Paths               │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/environment@30.0.0-alpha.3 >                     │
│                     │ @jest/fake-timers@30.0.0-alpha.3 >                     │
│                     │ jest-message-util@30.0.0-alpha.3 > micromatch@4.0.5    │
│                     │                                                        │
│                     │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/expect@30.0.0-alpha.3 > expect@30.0.0-alpha.3 >  │
│                     │ jest-message-util@30.0.0-alpha.3 > micromatch@4.0.5    │
│                     │                                                        │
│                     │ . > @jest/globals@30.0.0-alpha.3 >                     │
│                     │ @jest/expect@30.0.0-alpha.3 >                          │
│                     │ jest-snapshot@30.0.0-alpha.3 >                         │
│                     │ @jest/transform@30.0.0-alpha.3 >                       │
│                     │ jest-haste-map@30.0.0-alpha.3 > micromatch@4.0.5       │
│                     │                                                        │
│                     │ ... Found 754 paths, run `pnpm why micromatch` for     │
│                     │ more information                                       │
├─────────────────────┼────────────────────────────────────────────────────────┤
│ More info           │ https://github.com/advisories/GHSA-952p-6rrq-rcjv      │
└─────────────────────┴────────────────────────────────────────────────────────┘

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