Intel

AIKIDO-2026-725219

esbuild is vulnerable to Path Traversal

GHSA-g7r4-m6w7-qqqrPublished Jun 17, 2026
June 17, 2026

25

CVE Score

Low

Path Traversal

Are you affected? Scan for Free

TL;DR

esbuild's local development server uses path.Clean() on HTTP request paths, which only normalizes forward slashes. On Windows, requests containing backslash separators can escape the configured servedir and read files outside the intended directory. Before 0.28.1, a crafted URL could reach arbitrary filesystem paths when the dev server runs on Windows. The fix rejects any request path containing a backslash character.

How do I fix this?

Upgrade the esbuild library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and running esbuild's local development server on Windows with a configured serve directory.

Package

Versions

0.17.0 - 0.28.0

Fixed in 0.28.1

Background info

esbuild is vulnerable to Path Traversal in versions 0.17.0 - 0.28.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea