Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/esm-dev/esm.sh
  4. ›
  5. CVE-2025-59341

CVE-2025-59341: esm.sh has File Inclusion issue

September 17, 2025 (updated October 29, 2026)

A Local File Inclusion (LFI) issue was identified in the esm.sh service URL handling. An attacker could craft a request that causes the server to read and return files from the host filesystem (or other unintended file sources).

Severity: High — LFI can expose secrets, configuration files, credentials, or enable further compromise. Impact: reading configuration files, private keys, environment files, or other sensitive files; disclosure of secrets or credentials; information leakage that could enable further attacks.

References

  • github.com/advisories/GHSA-49pv-gwxp-532r
  • github.com/esm-dev/esm.sh/blob/c62f191d32639314ff0525d1c3c0e19ea2b16143/server/router.go
  • github.com/esm-dev/esm.sh/commit/492de92850dd4d350c8b299af541f87541e58a45
  • github.com/esm-dev/esm.sh/security/advisories/GHSA-49pv-gwxp-532r
  • nvd.nist.gov/vuln/detail/CVE-2025-59341
  • pkg.go.dev/vuln/GO-2025-3962

Code Behaviors & Features

Detect and mitigate CVE-2025-59341 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 136.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-23: Relative Path Traversal

Source file

go/github.com/esm-dev/esm.sh/CVE-2025-59341.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 08 Nov 2026 00:15:30 +0000.