Skip to content

@angular-devkit/build-angular depends on vulnerable version of vite #26916

Closed

Description

@ojpbay

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

Running npm audit on an Angular 16 project with version 16.2.11 of @angular-devkit/build-angular reports a security vulnerability with vite.

vite 4.0.0 - 4.5.1
Severity: high
Vite dev server option server.fs.deny can be bypassed when hosted on case-insensitive filesystem - GHSA-c24v-8rfc-w8vw
fix available via npm audit fix --force
Will install @angular-devkit/[email protected], which is a breaking change
node_modules/@angular-devkit/build-angular/node_modules/vite
@angular-devkit/build-angular 16.0.0-next.0 - 17.0.10
Depends on vulnerable versions of vite
node_modules/@angular-devkit/build-angular

An update is needed to use the patched version of vite - 4.5.2. The recent revision of @angular-devkit-build-angular (e0e011f) only moved this up to 4.5.1 which is still affected (see link below).

GHSA-c24v-8rfc-w8vw

Minimal Reproduction

  1. Create an angular v16 project with version 16.2.11 of @angular-devkit/build-angular.
  2. Run npm audit.

Exception or Error

No response

Your Environment

Angular CLI: 16.2.11
Node: 18.18.2
Package Manager: npm 9.8.1
OS: win32 x64

Angular: 16.2.12
... animations, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, platform-server, router
... service-worker

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.1602.11
@angular-devkit/build-angular      16.2.11
@angular-devkit/core               16.2.11
@angular-devkit/schematics         16.2.11
@angular/cdk                       16.2.13
@angular/cli                       16.2.11
@angular/flex-layout               15.0.0-beta.42
@angular/material                  16.2.13
@angular/material-moment-adapter   16.2.13
@schematics/angular                16.2.11
rxjs                               7.8.1
typescript                         4.9.5
zone.js                            0.13.3

Anything else relevant?

No response

Activity

  1. added 2 commits that reference this issue on Jan 22, 2024
    8086d96
    5fad401
  2. alan-agius4 commented on Jan 22, 2024

    @alan-agius4
    Collaborator

    Closed via #26919

  3. ojpbay commented on Jan 22, 2024

    @ojpbay
    Author

    @alan-agius4 many thanks for the speedy response. Do you have an idea when the fix will be released?

  4. alan-agius4 commented on Jan 22, 2024

    @alan-agius4
    Collaborator

    @ojpbay, it should be released this Wednesday.

  5. added 4 commits that reference this issue on Jan 23, 2024
    9b728e3
    23962ed
    e35465f
    4e2b23f
  6. angular-automatic-lock-bot commented on Feb 22, 2024

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Feb 22, 2024
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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions