fix(security): Upgrade copy-webpack-plugin to 14.0.0#27458
Merged
yhwang merged 1 commit intoprestodb:masterfrom Mar 30, 2026
Merged
fix(security): Upgrade copy-webpack-plugin to 14.0.0#27458yhwang merged 1 commit intoprestodb:masterfrom
yhwang merged 1 commit intoprestodb:masterfrom
Conversation
Contributor
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpgrades the presto-ui build dependency copy-webpack-plugin from 12.0.2 to 14.0.0 and refreshes the corresponding Yarn lockfile entries to address reported security vulnerabilities in transitive dependencies. Flow diagram for dependency hierarchy before and after copy-webpack-plugin upgradeflowchart TD
PrestoUI["presto-ui src package.json"]
subgraph Before_upgrade
copywp12["copy-webpack-plugin 12.0.2"]
fastglob_old["fast-glob 3.3.3"]
micromatch_old["micromatch 4.0.8"]
picomatch_vuln["picomatch 2.3.1 (vulnerable)"]
serialize_vuln["serialize-javascript 6.0.2 (vulnerable)"]
PrestoUI --> copywp12
copywp12 --> fastglob_old
fastglob_old --> micromatch_old
micromatch_old --> picomatch_vuln
copywp12 --> serialize_vuln
end
subgraph After_upgrade
copywp14["copy-webpack-plugin 14.0.0"]
fastglob_new["fast-glob (updated, safe)"]
micromatch_new["micromatch (updated, safe)"]
picomatch_safe["picomatch (fixed)"]
serialize_safe["serialize-javascript (fixed)"]
PrestoUI --> copywp14
copywp14 --> fastglob_new
fastglob_new --> micromatch_new
micromatch_new --> picomatch_safe
copywp14 --> serialize_safe
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
@unidevel imported this issue as lakehouse/presto #27458 |
Contributor
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since this is a major-version bump of copy-webpack-plugin, double-check the v13/v14 migration notes to ensure existing webpack config options (patterns, hooks, cache behavior, etc.) still behave as expected in the UI build.
- Consider pinning to an exact 14.x version instead of using a caret if you want to minimize unexpected future changes in build behavior from subsequent 14.x releases for this security-sensitive dependency.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since this is a major-version bump of copy-webpack-plugin, double-check the v13/v14 migration notes to ensure existing webpack config options (patterns, hooks, cache behavior, etc.) still behave as expected in the UI build.
- Consider pinning to an exact 14.x version instead of using a caret if you want to minimize unexpected future changes in build behavior from subsequent 14.x releases for this security-sensitive dependency.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
nishithakbhaskaran
approved these changes
Mar 30, 2026
Contributor
nishithakbhaskaran
left a comment
There was a problem hiding this comment.
Thanks for the fix @unidevel.
This was referenced Mar 31, 2026
bibith4
pushed a commit
to bibith4/presto
that referenced
this pull request
Apr 1, 2026
## Description <details><summary><img src='https://whitesource-resources.whitesourcesoftware.com/vulnerability_details.png' width=19 height=20> Vulnerable Library - <b>copy-webpack-plugin-12.0.2.tgz</b></summary> <p></p> <p>Path to dependency file: /presto-ui/src/package.json</p> <p>Path to vulnerable library: /presto-ui/src/package.json</p> <p> </details> ## Vulnerabilities | Vulnerability | Severity | <img src='https://whitesource-resources.whitesourcesoftware.com/cvss3.png' width=19 height=20> CVSS | Dependency | Type | Fixed in (copy-webpack-plugin version) | Remediation Possible** | | ------------- | ------------- | ----- | ----- | ----- | ------------- | --- | | [CVE-2026-33671](https://www.mend.io/vulnerability-database/CVE-2026-33671) | <img src='https://whitesource-resources.whitesourcesoftware.com/high_vul.png?' width=19 height=20> High | 7.5 | picomatch-2.3.1.tgz | Transitive | N/A* | &prestodb#10060; | | [CVE-2026-34043](https://www.mend.io/vulnerability-database/CVE-2026-34043) | <img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> Medium | 5.9 | serialize-javascript-6.0.2.tgz | Transitive | N/A* | &prestodb#10060; | | [CVE-2026-33672](https://www.mend.io/vulnerability-database/CVE-2026-33672) | <img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> Medium | 5.3 | picomatch-2.3.1.tgz | Transitive | N/A* | &prestodb#10060; | <p>*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.</p><p>**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation</p> ## Details <details> <summary><img src='https://whitesource-resources.whitesourcesoftware.com/high_vul.png?' width=19 height=20> CVE-2026-33671</summary> ### Vulnerable Library - <b>picomatch-2.3.1.tgz</b> <p>Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.</p> <p>Library home page: <a href="https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz">https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz</a></p> <p>Path to dependency file: /presto-ui/src/package.json</p> <p>Path to vulnerable library: /presto-ui/src/package.json</p> <p> Dependency Hierarchy: - copy-webpack-plugin-12.0.2.tgz (Root Library) - fast-glob-3.3.3.tgz - micromatch-4.0.8.tgz - ❌ **picomatch-2.3.1.tgz** (Vulnerable Library) <p>Found in base branches: <b>wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master</b></p> </p> <p></p> ### Vulnerability Details <p> Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are 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. 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. 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. If upgrading is not immediately possible, avoid passing untrusted glob patterns to "picomatch". Possible mitigations include disabling extglob support for untrusted patterns by using "noextglob: true", rejecting or sanitizing patterns containing nested extglobs or extglob quantifiers such as "+()" and "*()", enforcing strict allowlists for accepted pattern syntax, running matching in an isolated worker or separate process with time and resource limits, and applying application-level request throttling and input validation for any endpoint that accepts glob patterns. <p>Publish Date: 2026-03-26 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2026-33671>CVE-2026-33671</a></p> </p> <p></p> ### CVSS 3 Score Details (<b>7.5</b>) <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> <p></p> ### Suggested Fix <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://github.com/micromatch/picomatch/commit/5eceecd27543b8e056b9307d69e105ea03618a7d">https://github.com/micromatch/picomatch/commit/5eceecd27543b8e056b9307d69e105ea03618a7d</a></p> <p>Release Date: 2026-03-25</p> <p>Fix Resolution: https://github.com/micromatch/picomatch.git - 3.0.2,https://github.com/micromatch/picomatch.git - 4.0.4,https://github.com/micromatch/picomatch.git - 2.3.2</p> </p> <p></p> </details><details> <summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> CVE-2026-34043</summary> ### Vulnerable Library - <b>serialize-javascript-6.0.2.tgz</b> <p></p> <p>Library home page: <a href="https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz">https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz</a></p> <p>Path to dependency file: /presto-ui/src/package.json</p> <p>Path to vulnerable library: /presto-ui/src/package.json</p> <p> Dependency Hierarchy: - copy-webpack-plugin-12.0.2.tgz (Root Library) - ❌ **serialize-javascript-6.0.2.tgz** (Vulnerable Library) <p>Found in base branches: <b>wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master</b></p> </p> <p></p> ### Vulnerability Details <p> Impact What kind of vulnerability is it? It is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from "Array.prototype" but has a very large "length" property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely. Who is impacted? Applications that use "serialize-javascript" to serialize untrusted or user-controlled objects are at risk. While direct exploitation is difficult, it becomes a high-priority threat if the application is also vulnerable to Prototype Pollution or handles untrusted data via YAML Deserialization, as these could be used to inject the malicious object. Patches Has the problem been patched? Yes, the issue has been patched by replacing "instanceof Array" checks with "Array.isArray()" and using "Object.keys()" for sparse array detection. What versions should users upgrade to? Users should upgrade to "v7.0.5" or later. Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading? There is no direct code-level workaround within the library itself. However, users can mitigate the risk by: * Validating and sanitizing all input before passing it to the "serialize()" function. * Ensuring the environment is protected against Prototype Pollution. * Upgrading to "v7.0.5" as soon as possible. Acknowledgements Serialize JavaScript thanks Tomer Aberbach (@TomerAberbach) for discovering and privately disclosing this issue. <p>Publish Date: 2026-03-28 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2026-34043>CVE-2026-34043</a></p> </p> <p></p> ### CVSS 3 Score Details (<b>5.9</b>) <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: High - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: None - Availability Impact: High </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> <p></p> ### Suggested Fix <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://github.com/yahoo/serialize-javascript/commit/f147e90269b58bb6e539cfdf3d0e20d6ad14204b">https://github.com/yahoo/serialize-javascript/commit/f147e90269b58bb6e539cfdf3d0e20d6ad14204b</a></p> <p>Release Date: 2026-03-28</p> <p>Fix Resolution: https://github.com/yahoo/serialize-javascript.git - v7.0.5</p> </p> <p></p> </details><details> <summary><img src='https://whitesource-resources.whitesourcesoftware.com/medium_vul.png?' width=19 height=20> CVE-2026-33672</summary> ### Vulnerable Library - <b>picomatch-2.3.1.tgz</b> <p>Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.</p> <p>Library home page: <a href="https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz">https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz</a></p> <p>Path to dependency file: /presto-ui/src/package.json</p> <p>Path to vulnerable library: /presto-ui/src/package.json</p> <p> Dependency Hierarchy: - copy-webpack-plugin-12.0.2.tgz (Root Library) - fast-glob-3.3.3.tgz - micromatch-4.0.8.tgz - ❌ **picomatch-2.3.1.tgz** (Vulnerable Library) <p>Found in base branches: <b>wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master</b></p> </p> <p></p> ### Vulnerability Details <p> Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are vulnerable to a method injection vulnerability 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. 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. 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; and manually patching the library by modifying "POSIX_REGEX_SOURCE" to use a null prototype. <p>Publish Date: 2026-03-26 <p>URL: <a href=https://www.mend.io/vulnerability-database/CVE-2026-33672>CVE-2026-33672</a></p> </p> <p></p> ### CVSS 3 Score Details (<b>5.3</b>) <p> Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None </p> For more information on CVSS3 Scores, click <a href="https://www.first.org/cvss/calculator/3.0">here</a>. </p> <p></p> ### Suggested Fix <p> <p>Type: Upgrade version</p> <p>Origin: <a href="https://github.com/micromatch/picomatch/commit/4516eb521f13a46b2fe1a1d2c9ef6b20ddc0e903">https://github.com/micromatch/picomatch/commit/4516eb521f13a46b2fe1a1d2c9ef6b20ddc0e903</a></p> <p>Release Date: 2026-03-25</p> <p>Fix Resolution: https://github.com/micromatch/picomatch.git - 2.3.2,https://github.com/micromatch/picomatch.git - 4.0.4,https://github.com/micromatch/picomatch.git - 3.0.2</p> </p> <p></p> </details> ## Motivation and Context ## Impact UI build ## Test Plan Test manually ## Contributor checklist - [ ] Please make sure your submission complies with our [contributing guide](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md), in particular [code style](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#code-style) and [commit standards](https://github.com/prestodb/presto/blob/master/CONTRIBUTING.md#commit-standards). - [ ] PR description addresses the issue accurately and concisely. If the change is non-trivial, a GitHub Issue is referenced. - [ ] Documented new properties (with its default value), SQL syntax, functions, or other functionality. - [ ] If release notes are required, they follow the [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines). - [ ] Adequate tests were added if applicable. - [ ] CI passed. - [ ] If adding new dependencies, verified they have an [OpenSSF Scorecard](https://securityscorecards.dev/#the-checks) score of 5.0 or higher (or obtained explicit TSC approval for lower scores). ## Release Notes Please follow [release notes guidelines](https://github.com/prestodb/presto/wiki/Release-Notes-Guidelines) and fill in the release notes below. ``` == NO RELEASE NOTE == ``` ## Summary by Sourcery Enhancements: - Update the copy-webpack-plugin dependency in presto-ui from version 12.x to 14.x to pull in patched transitive libraries and improve security posture.
15 tasks
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Path to dependency file: /presto-ui/src/package.json
Path to vulnerable library: /presto-ui/src/package.json
Vulnerabilities
*For some transitive vulnerabilities, there is no version of direct dependency with a fix. Check the "Details" section below to see if there is a version of transitive dependency where vulnerability is fixed.
**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation
Details
Vulnerable Library - picomatch-2.3.1.tgz
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Library home page: https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz
Path to dependency file: /presto-ui/src/package.json
Path to vulnerable library: /presto-ui/src/package.json
Dependency Hierarchy:
Found in base branches: wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master
Vulnerability Details
Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are 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. 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. 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. If upgrading is not immediately possible, avoid passing untrusted glob patterns to "picomatch". Possible mitigations include disabling extglob support for untrusted patterns by using "noextglob: true", rejecting or sanitizing patterns containing nested extglobs or extglob quantifiers such as "+()" and "()", enforcing strict allowlists for accepted pattern syntax, running matching in an isolated worker or separate process with time and resource limits, and applying application-level request throttling and input validation for any endpoint that accepts glob patterns.
Publish Date: 2026-03-26
URL: CVE-2026-33671
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: micromatch/picomatch@5eceecd
Release Date: 2026-03-25
Fix Resolution: https://github.com/micromatch/picomatch.git - 3.0.2,https://github.com/micromatch/picomatch.git - 4.0.4,https://github.com/micromatch/picomatch.git - 2.3.2
Vulnerable Library - serialize-javascript-6.0.2.tgz
Library home page: https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz
Path to dependency file: /presto-ui/src/package.json
Path to vulnerable library: /presto-ui/src/package.json
Dependency Hierarchy:
Found in base branches: wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master
Vulnerability Details
Impact What kind of vulnerability is it? It is a Denial of Service (DoS) vulnerability caused by CPU exhaustion. When serializing a specially crafted "array-like" object (an object that inherits from "Array.prototype" but has a very large "length" property), the process enters an intensive loop that consumes 100% CPU and hangs indefinitely. Who is impacted? Applications that use "serialize-javascript" to serialize untrusted or user-controlled objects are at risk. While direct exploitation is difficult, it becomes a high-priority threat if the application is also vulnerable to Prototype Pollution or handles untrusted data via YAML Deserialization, as these could be used to inject the malicious object. Patches Has the problem been patched? Yes, the issue has been patched by replacing "instanceof Array" checks with "Array.isArray()" and using "Object.keys()" for sparse array detection. What versions should users upgrade to? Users should upgrade to "v7.0.5" or later. Workarounds Is there a way for users to fix or remediate the vulnerability without upgrading? There is no direct code-level workaround within the library itself. However, users can mitigate the risk by: * Validating and sanitizing all input before passing it to the "serialize()" function. * Ensuring the environment is protected against Prototype Pollution. * Upgrading to "v7.0.5" as soon as possible. Acknowledgements Serialize JavaScript thanks Tomer Aberbach (@TomerAberbach) for discovering and privately disclosing this issue.
Publish Date: 2026-03-28
URL: CVE-2026-34043
CVSS 3 Score Details (5.9)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: High
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: yahoo/serialize-javascript@f147e90
Release Date: 2026-03-28
Fix Resolution: https://github.com/yahoo/serialize-javascript.git - v7.0.5
Vulnerable Library - picomatch-2.3.1.tgz
Blazing fast and accurate glob matcher written in JavaScript, with no dependencies and full support for standard and extended Bash glob features, including braces, extglobs, POSIX brackets, and regular expressions.
Library home page: https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz
Path to dependency file: /presto-ui/src/package.json
Path to vulnerable library: /presto-ui/src/package.json
Dependency Hierarchy:
Found in base branches: wxd-fedramp-baseline, elasticsearch-vulnerability, staging-rebase-pr, master
Vulnerability Details
Picomatch is a glob matcher written JavaScript. Versions prior to 4.0.4, 3.0.2, and 2.3.2 are vulnerable to a method injection vulnerability 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. 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. 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; and manually patching the library by modifying "POSIX_REGEX_SOURCE" to use a null prototype.
Publish Date: 2026-03-26
URL: CVE-2026-33672
CVSS 3 Score Details (5.3)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: Low
- Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: micromatch/picomatch@4516eb5
Release Date: 2026-03-25
Fix Resolution: https://github.com/micromatch/picomatch.git - 2.3.2,https://github.com/micromatch/picomatch.git - 4.0.4,https://github.com/micromatch/picomatch.git - 3.0.2
Motivation and Context
Impact
UI build
Test Plan
Test manually
Contributor checklist
Release Notes
Please follow release notes guidelines and fill in the release notes below.
Summary by Sourcery
Enhancements: