Skip to content
OpenAdvisories
High · 8.2 CVE-2025-65025 EUVD-2025-198181GHSA-h3mw-4f23-gwpwGO-2025-4138

esm.sh CDN service has arbitrary file write via tarslip

Published Nov 19, 2025 · Updated Nov 20, 2025 · Assigned by GitHub_M

Description

esm.sh is a nobuild content delivery network(CDN) for modern web development. Prior to version 136, the esm.sh CDN service is vulnerable to path traversal during NPM package tarball extraction. An attacker can craft a malicious NPM package containing specially crafted file paths (e.g., package/../../tmp/evil.js). When esm.sh downloads and extracts this package, files may be written to arbitrary locations on the server, escaping the intended extraction directory. This issue has been patched in version 136.

Affected products

VendorProductAffectedFixed
esm-dev esm.sh < 136 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20251209T172047-150000.1.127.1 SUSE-SU-2025:4395-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20251209T172047-150000.1.127.1 SUSE-SU-2025:4395-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/esm-dev/esm.sh < 0.0.0-20251117232647-9d77b88c3207 0.0.0-20251117232647-9d77b88c3207 GHSA-h3mw-4f23-gwpw

Advisories 2

References