Skip to content

Mitigate CVE-2026-118773 (glob) and CVE-2026-118764 (minimatch) in @angular/cli@21 via pacote #34795

Not planned

Description

@cracksalad

Command

other

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

When installing @angular/cli@21 you are facing two vulnerabilities: CVE-2026-118773 in glob@13.0.7 and CVE-2026-118764 in minimatch@10.2.6
Both are transitive dependencies of

@angular/cli@21.2.31
└─┬ pacote@21.5.1
  ├─┬ @npmcli/package-json@7.0.5
  │ └─┬ glob@13.0.7
  │   └── minimatch@10.2.6
  ├─┬ cacache@20.0.4
  │ └── glob@13.0.7 deduped
  ├─┬ npm-packlist@10.0.4
  │ └─┬ ignore-walk@8.0.0
  │   └── minimatch@10.2.6 deduped
  └─┬ sigstore@4.1.1
    └─┬ @sigstore/tuf@4.0.2
      └─┬ tuf-js@4.1.0
        └─┬ @tufjs/models@4.1.0
          └── minimatch@10.2.6 deduped

In order to mitigate this, we would have to upgrade to pacote@22 which contains breaking changes but also updates its dependencies to resolve the issue.

Minimal Reproduction

  1. npm install @angular/cli@21
  2. npm audit

Exception or Error


Your Environment

Angular CLI       : 21.2.31
Angular           : 21.2.25
Node.js           : 24.22.3
Package Manager   : npm 11.19.0
Operating System  : linux x64

┌───────────────────────────┬───────────────────┬───────────────────┐
│ Package                   │ Installed Version │ Requested Version │
├───────────────────────────┼───────────────────┼───────────────────┤
│ @angular/build            │ 21.2.29           │ ^21.2.27          │
│ @angular/cdk              │ 21.2.14           │ ^21.2.14          │
│ @angular/cli              │ 21.2.31           │ ^21.2.21          │
│ @angular/common           │ 21.2.25           │ ^21.2.20          │
│ @angular/compiler         │ 21.2.25           │ ^21.2.25          │
│ @angular/compiler-cli     │ 21.2.25           │ ^21.2.25          │
│ @angular/core             │ 21.2.25           │ ^21.2.25          │
│ @angular/elements         │ 21.2.25           │ ^21.2.20          │
│ @angular/forms            │ 21.2.25           │ ^21.2.20          │
│ @angular/platform-browser │ 21.2.25           │ ^21.2.20          │
│ @angular/router           │ 21.2.25           │ ^21.2.25          │
│ @angular/service-worker   │ 21.2.25           │ ^21.2.20          │
│ ng-packagr                │ 21.2.7            │ ^21.2             │
│ rxjs                      │ 7.8.2             │ ^7.8.2            │
│ typescript                │ 5.9.3             │ ^5.9.3 || ^6      │
│ vitest                    │ 4.1.12            │ ^4.1.7            │
└───────────────────────────┴───────────────────┴───────────────────┘

Anything else relevant?

No response

Activity

  1. added this to the needsTriage milestone on Nov 26, 2026
  2. alan-agius4 commented on Nov 27, 2026

    @alan-agius4
    Collaborator

    Thanks for the report. Because Angular v21 is in LTS and supports Node.js ^20.19.0 || ^22.12.0 || >=24.0.0, we cannot update pacote to v22 on 21.2.x as it requires Node.js ^22.22.2 || ^24.15.0 || >=26.0.0, which would break support for users on older Node.js versions. Upstream pacote@21.x has not backported updates to glob@14 / minimatch@11.

    Security impact

    Options to resolve npm audit alerts

    1. Upgrade to Angular v22 (@angular/cli >= 22.1.0): pacote was completely removed in v22.1.0 (refactor(@angular/cli): transition update command to use PackageManager abstraction #33364).
    2. If staying on v21 LTS: Suppress/waive the alert in your SCA tooling (or run npm audit --omit=dev for production gates), or apply a scoped pacote override in your project's package.json (glob@^14.0.6 and minimatch@^11.0.9 both retain Node.js 20+ support):
      {
        "overrides": {
          "pacote": {
            "glob": "^14.0.6",
            "minimatch": "^11.0.9"
          }
        }
      }
      (Using ^14.0.6 and ^11.0.9 also covers newer advisories GHSA-qxr8-q827-836c and GHSA-c859-jr93-m5j4.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions