Esm-dev esm.sh
esm.sh: Path Traversal via package.json browser field allows reading arbitrary server files
esm.sh is a no-build content delivery network (CDN) for web development. In 137 and earlier, a Local File Inclusion (LFI) vulnerability exists in the esbuild plugin's handling of the browser field in package.json. An attacker can publish an npm package that causes the server to read and return arbitrary files from the host filesystem during the build process.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
esm-dev esm.sh
- <= 137
github.com/esm-dev/esm.sh (Go)
- < 0.0.0-20250616164159-0593516c4cfa
Fixed in 0.0.0-20250616164159-0593516c4cfa
from GitHub Security Advisory GHSA-rg65-45m7-hq57
Mitigation
Upgrade github.com/esm-dev/esm.sh to 0.0.0-20250616164159-0593516c4cfa or later.
References
- Vendor advisory github.com/esm-dev/esm.sh/security/advisories/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.