Repository navigation
Not planned
Not planned
Copy link
Labels
Milestone
Description
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
- npm install @angular/cli@21
- 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
alan-agius4 commentedon Nov 27, 2026
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 updatepacoteto v22 on21.2.xas it requires Node.js^22.22.2 || ^24.15.0 || >=26.0.0, which would break support for users on older Node.js versions. Upstreampacote@21.xhas not backported updates toglob@14/minimatch@11.Security impact
CVE-2026-118773(glob@13.0.7) is a stale-advisory false positive:glob@13.0.7already includes the backported fix (Review a compatible 13.x cancellation backport isaacs/node-glob#664), andGHSA-3g3m-2fjr-6pw4has pending PRs (such as [GHSA-3g3m-2fjr-6pw4] glob 13.0.7 contains the fix; narrow the affected range github/advisory-database#11054) to exclude13.0.7from the affected range.CVE-2026-118764(minimatch@10.2.6) is not reachable via@angular/cli: On v21,@angular/clionly callspacote.packument()duringng update, which does not invoke theglob/minimatchcode paths in@npmcli/package-json,cacache,npm-packlist/ignore-walk, orsigstore/@tufjs/models. Both CVEs are also Medium-severity DoS-only issues, and@angular/cliis a development-time tool not included in production bundles.Options to resolve
npm auditalerts@angular/cli >= 22.1.0):pacotewas completely removed in v22.1.0 (refactor(@angular/cli): transition update command to use PackageManager abstraction #33364).npm audit --omit=devfor production gates), or apply a scopedpacoteoverride in your project'spackage.json(glob@^14.0.6andminimatch@^11.0.9both retain Node.js 20+ support):{ "overrides": { "pacote": { "glob": "^14.0.6", "minimatch": "^11.0.9" } } }^14.0.6and^11.0.9also covers newer advisoriesGHSA-qxr8-q827-836candGHSA-c859-jr93-m5j4.)