Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. esbuild
  4. ›
  5. GHSA-g7r4-m6w7-qqqr

GHSA-g7r4-m6w7-qqqr: esbuild allows arbitrary file read when running the development server on Windows

June 12, 2026

The development server contains a path traversal vulnerability on Windows when serving files from servedir.

Due to the use of path.Clean() (which only normalizes forward-slash / separators) instead of a Windows-aware path normalization function, it is possible to craft requests using backslashes (\) that bypass the intended directory containment logic. An attacker can escape the configured servedir root and access arbitrary files on the filesystem. This issue affects Windows environments only.

References

  • github.com/advisories/GHSA-g7r4-m6w7-qqqr
  • github.com/evanw/esbuild/releases/tag/v0.28.1
  • github.com/evanw/esbuild/security/advisories/GHSA-g7r4-m6w7-qqqr

Code Behaviors & Features

Detect and mitigate GHSA-g7r4-m6w7-qqqr with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.27.3 before 0.28.1

Fixed versions

  • 0.28.1

Solution

Upgrade to version 0.28.1 or above.

Impact 2.5 LOW

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

npm/esbuild/GHSA-g7r4-m6w7-qqqr.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:40 +0000.