Fix CVE-2026-27903: Update minimatch 5.1.6 → 5.1.9 across affected tasks#22133
Draft
Copilot wants to merge 3 commits into
Draft
Fix CVE-2026-27903: Update minimatch 5.1.6 → 5.1.9 across affected tasks#22133Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
|
Azure Pipelines: 3 pipeline(s) require an authorized user to comment /azp run to run. |
3 tasks
Agent-Logs-Url: https://github.com/microsoft/azure-pipelines-tasks/sessions/d3ccfc76-e8cf-4ce7-84aa-25cbfba327b8 Co-authored-by: sanjuyadav24 <185911972+sanjuyadav24@users.noreply.github.com>
|
Azure Pipelines: 3 pipeline(s) require an authorized user to comment /azp run to run. |
…ted tasks Agent-Logs-Url: https://github.com/microsoft/azure-pipelines-tasks/sessions/d3ccfc76-e8cf-4ce7-84aa-25cbfba327b8 Co-authored-by: sanjuyadav24 <185911972+sanjuyadav24@users.noreply.github.com>
|
Azure Pipelines: 3 pipeline(s) require an authorized user to comment /azp run to run. |
Copilot
AI
changed the title
[WIP] Fix CVE-2026-27903 vulnerability in minimatch 5.1.6
Fix CVE-2026-27903: Update minimatch 5.1.6 → 5.1.9 across affected tasks
May 5, 2026
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.
Context
CVE-2026-27903 (High severity) in
minimatch 5.1.6. The vulnerability entered viamocha@10.x(dev test dependency), which pinsminimatch ^5.1.6. Fixed inminimatch 5.1.8+.Task Name
ANTV1, BicepDeployV0, CargoAuthenticateV0, DotNetCoreCLIV2, DownloadPackageV0, DownloadPackageV1, GradleV2, GradleV3, GradleV4, MavenV2, MavenV3, MavenV4, NpmAuthenticateV0, NpmV1, NuGetCommandV2, NuGetToolInstallerV0, NuGetToolInstallerV1, UniversalPackagesV1, UseDotNetV2
Description
"minimatch": "^5.1.8"tooverridesin each affected task'spackage.json— forces npm to resolve all transitiveminimatchinstances to the patched versionpackage-lock.jsonfiles;minimatchnow resolves to5.1.9everywhereUniversalPackagesV1/_buildConfigs/Wif/package.json(previously missing) to properly carry the override for that build config's lock fileRisk Assessment (Low / Medium / High)
Low. Dev-only dependency path (
mocha→minimatch). The override bumps minimatch from 5.1.6 to 5.1.9 within the same semver minor range; no API surface changes. Production runtime is unaffected — minimatch is not used directly by task logic.Change Behind Feature Flag (Yes / No)
No — dependency version pinning cannot be feature-flagged.
Tech Design / Approach
Used npm
overrides(npm v8+) rather than direct dependency pinning, consistent with the existing pattern in this repo (e.g.,form-data,uuidoverrides in other tasks). This is the minimal-footprint approach: no changes to task source code or test logic.Documentation Changes Required (Yes/No)
No.
Unit Tests Added or Updated (Yes / No)
No — no test logic changed. The fix is purely in dependency resolution.
Additional Testing Performed
Verified via
package-lock.jsoninspection: nominimatch@5.1.6entries remain in any lock file across the repo.Logging Added/Updated (Yes/No)
No.
Telemetry Added/Updated (Yes/No)
No.
Rollback Scenario and Process (Yes/No)
Yes — revert the
overridesentry and re-runnpm install --package-lock-onlyto restore previous resolution.Dependency Impact Assessed and Regression Tested (Yes/No)
Yes —
minimatch5.1.6 → 5.1.9 is a patch-level fix with no breaking changes. All affected lock files verified post-update.Checklist
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
whatsprintis.it/usr/bin/curl curl -s REDACTED(dns block)/usr/bin/curl curl -s --max-time 10 REDACTED(dns block)/usr/bin/python3 python3 -c import urllib.request, json try: with urllib.request.urlopen('REDACTED', timeout=10) as r: print(r.read().decode()) except Exception as e: print(f'Failed: {e}')(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
[Component Governance Alert] - CVE-2026-27903 in minimatch 5.1.6. Severity: High
Work Item Details
Note: Please focus on the descriptions and information that provide context about the task requirements, functionality, and implementation details. Dates, priorities, and administrative metadata are less relevant for coding tasks.
Description
See more details about this alert in Component Governance.
No field updates will be made to this work item after its initial creation. This includes:
• State changes: If an alert is fixed in CG, the state will not be updated on the work item. You must close the work item manually.
• Severity changes: If an alert changes in severity, the work item will only reflect the severity at the time of the work item’s creation.
• Service mapping changes: If the repository that generated this work item is moved to another service, tags that indicate ServiceID will not be updated.
• Any other change to the alert in CG
If you're having trouble with an S360 item associated with this work item, read the S360 troubleshooting guide.
For additional information and to understand why this work item was assigned to you, see our work item documentation.
This work item was created for an alert in the following repository: microsoft/azure-pipelines-tasks
Tags
auto-cgtriaged; Azure DevOps; CG; CG Burndown; Component Governance; microsoft/azure-pipelines-tasks
Repro Steps
See more details about this alert in Component Governance.
No field updates will be made to this work item after its initial creation. This includes:
• State changes: If an alert is fixed in CG, the state will not be updated on the work item. You must close the work item manually.
• Severity changes: If an alert changes in severity, the work item will only reflect the severity at the time of the work item’s creation.
• Service mapping changes: If the repository that generated this work item is moved to another service, tags that indicate ServiceID will not be updated.
• Any other change to the alert in CG
If you're having trouble with an S360 item associated with this work item, read the S360 troubleshooting guide.
For additional information and to understand why this work item was assigned to you, see our work item documentation.
This work item was created for an alert in the following repository: microsoft/azure-pipelines-tasks
Comments
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:31:53 GMT): @ @<Raju Ellendula (LTIMindtree Limited)> GitHub pull request !#22124 is ready for you to review.
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:27:27 GMT): @ @<Raju Ellendula (LTIMindtree Limited)> GitHub pull request !#22123 is ready for you to review.
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:26:13 GMT): Thank you @ @<Raju Ellendula (LTIMindtree Limited)> for asking me to work on this! I started on the work item, linked !#22124 and I'll update it as I form a plan and make progress.
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:11:30 GMT): Thank you @ @<Raju Ellendula (LTIMindtree Limited)> for asking me to work on this! I started on the work item, linked !#22123 and I'll update it as I form a plan and make progress.
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:05:50 GMT): @ @<Raju Ellendula (LTIMindtree Limited)> GitHub pull request !#22122 is ready for you to review.
GitHub Copilot Coding Agent (Tue, 05 May 2026 08:00:17 GMT): Thank you @ @<Raju Ellendula (LTIMindtree Limited)> for asking me to work on this! I started on the work item, linked !#22122 and I'll update it as I form a plan and make progress.
GitHub Copilot Coding Agent (Tue, 05 May 2026 07:53:15 GMT): @ @<Raju Ellendula (LTIMindtree Limited)> GitHub pull request !#22121 is ready for you to review.
GitHub Copilot Coding Agent (Tue, 05 May 2026 07:50:39 GMT): Thank you @ @<Raju Ellendula (LTIMindtree Limited)> for asking me to work on this! I started on the work item, linked !#22121 and I'll update it as I...
Work item: AB#2362016
Created via Azure DevOps