Skip to content

Vite has an server.fs.deny bypass with an invalid request-target #30095

Closed

Description

@ph360

Which @angular/* package(s) are the source of the bug?

upgrade

Is this a regression?

No

Description

moderate severity vulnerabilities

vite

Affected versions

= 6.2.0, < 6.2.6

Patched versions
6.2.6

In package-lock.json show me "vite": "6.2.5"

Note:
vite the dependencies of node_modules/@angular/build
"version": "19.2.7"

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

C:\pr360-portal-v3\pr360>npm audit
# npm audit report

vite  6.2.0 - 6.2.5
Severity: moderate
Vite has an `server.fs.deny` bypass with an invalid `request-target` - https://github.com/advisories/GHSA-356w-63v5-8wf4
fix available via `npm audit fix --force`
Will install @angular-devkit/[email protected], which is a breaking change
node_modules/@angular/build/node_modules/vite
  @angular/build  >=19.2.1
  Depends on vulnerable versions of vite
  node_modules/@angular/build
    @angular-devkit/build-angular  >=19.2.1
    Depends on vulnerable versions of @angular/build
    node_modules/@angular-devkit/build-angular

3 moderate severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 19.2.7
Node: 22.14.0
Package Manager: npm 11.2.0
OS: win32 x64

Angular: 19.2.6
... common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1902.7
@angular-devkit/build-angular   19.2.7
@angular-devkit/core            19.2.7
@angular-devkit/schematics      19.2.7
@angular/cli                    19.2.7
@angular/ssr                    19.2.7
@schematics/angular             19.2.7
rxjs                            7.8.2
typescript                      5.7.3
zone.js                         0.15.0

Anything else?

it happens when create one new project angular 19.

Activity

  1. transferred this issue fromangular/angularon Apr 12, 2025
  2. added a commit that references this issue on Apr 14, 2025
    2d1b2b7
  3. self-assigned this
    on Apr 14, 2025
  4. added theissue type on Apr 14, 2025
  5. added
    freq1: low
    on Apr 14, 2025
  6. added a commit that references this issue on Apr 15, 2025
    8ab033e
  7. alan-agius4 commented on Apr 15, 2025

    @alan-agius4
    Collaborator

    Closed via #30099

  8. angular-automatic-lock-bot commented on May 16, 2025

    @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.

  9. locked and limited conversation to collaborators on May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area: @angular/buildfreq1: lowseverity6: securitytype: bug/fix

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions