Skip to content

Question: Could @angular/cli 21.2.x update yargs to 18.1.0 or later? #34796

In review

Description

@cmgchess

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

Hi

I noticed that Angular CLI 21.2.x currently depends on yargs@18.0.0

In our project we came across the following security advisory from Aikido:
https://intel.aikido.dev/cve/AIKIDO-2026-922647

According to the advisory, yargs versions up to 18.0.0 are affected, and the issue is fixed in 18.1.0.

I also noticed that @angular/compiler-cli and @angular/localize declare yargs using ^18.0.0, whereas @angular/cli@21.2.31 appears to specify an exact dependency on 18.0.0.

As a result, npm continues to resolve yargs to 18.0.0, even though newer versions (18.1.0 and 18.2.0) are available.

I wanted to clarify

  1. Would it be possible to update the yargs to 18.1.0 or later in Angular CLI 21.2.x?
  2. Is the security advisory applicable to Angular CLI's usage of Yargs, or could this be considered a false positive based on how Angular CLI uses the library?

I'm not sure whether the reported vulnerability is actually exploitable in Angular CLI's usage so a clarification is much appreciated

Thanks

Minimal Reproduction

  1. Create or use an Angular 21.2.x project.
  2. Install dependencies
npm install
  1. Check the installed Yargs dependency
npm ls yargs

Actual result

@angular/cli@21.2.31
└── yargs@18.0.0

@angular/compiler-cli@21.2.26
└── yargs@18.0.0 deduped

@angular/localize@21.2.26
└── yargs@18.0.0 deduped

After npm update yargs the installed version stays at 18.0.0

Exception or Error


Your Environment

21.2.31

Anything else relevant?

No response

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