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 September 26, 2025)

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
  • 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. Learn more about Dependency Scanning →

Affected versions

All versions up to 136

Solution

Unfortunately, there is no solution available yet.

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 Fri, 03 Oct 2025 00:18:20 +0000.