{"items":[{"id":"NVI-00009207","kind":"vulnerability","title":"esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-g2h5-cvvr-7gmw","CVE-2025-59342"],"plain_summary":"GitHub lists this reviewed advisory for github.com/esm-dev/esm.sh. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-3e884a0624dc53a91a00a88c5b4543df"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-06-17T09:45:56.447Z","value":"5.5 MEDIUM (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-33f892f67e047901af2da2249b589e00"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"3.153%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.8796. Missing scores are unknown.","source_id":"sr-3e884a0624dc53a91a00a88c5b4543df"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-f50dac08fa296a704c9caf597880db42","url":"https://github.com/advisories/GHSA-g2h5-cvvr-7gmw","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-g2h5-cvvr-7gmw","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T21:56:08.420Z"},{"id":"sr-33f892f67e047901af2da2249b589e00","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-59342","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2025-59342","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-03T02:28:54.927Z"},{"id":"sr-3e884a0624dc53a91a00a88c5b4543df","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2025-59342","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.372Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f50dac08fa296a704c9caf597880db42"],"technology":"github.com/esm-dev/esm.sh","known_exclusions":[],"conditions_summary":"## Summary\n\nA path-traversal flaw in the handling of the `X-Zone-Id` HTTP header allows an attacker to cause the application to write files outside the intended storage location. The header value is used to build a filesystem path but is not properly canonicalized or restricted to the application’s storage base directory. As a result, supplying `../` sequences in `X-Zone-Id` causes files to be written to arbitrary directories (example observed: `~/.esmd/modules/transform//` instead of `~/.esmd/storage/modules/transform`).\n\n**Severity:** Medium\n\n**Component / Endpoint:** \n\n`POST /transform` — handling of `X-Zone-Id` header\n\nThe vulnerable code is in https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L116 and https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L411 \n\n**Impact:** Arbitrary file creation / overwrite outside intended storage directory (file write to attacker-controlled path). Possible remote code execution, persistence, tampering with application files, or facilitating further path-traversal attacks.\n\n---\n\n## Proof of Concept (POC)\n\nRequest (attacker-supplied `X-Zone-Id` contains path traversal):\n\n```\nPOST /transform HTTP/1.1\nHost: localhost:8888\n","public_affected_ranges":["<= 136"]}],"null_published_at":"2026-11-03T10:03:31.393Z","source_updated_at":"2026-10-29T02:09:47.000Z","source_disclosed_at":"2025-09-17T19:03:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:56:08.420Z"},{"id":"NVI-00009207","kind":"vulnerability","title":"esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-g2h5-cvvr-7gmw","CVE-2025-59342"],"plain_summary":"GitHub lists this reviewed advisory for github.com/esm-dev/esm.sh. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-3e884a0624dc53a91a00a88c5b4543df"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"3.153%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.8796. Missing scores are unknown.","source_id":"sr-3e884a0624dc53a91a00a88c5b4543df"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-f50dac08fa296a704c9caf597880db42","url":"https://github.com/advisories/GHSA-g2h5-cvvr-7gmw","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-g2h5-cvvr-7gmw","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T21:56:08.420Z"},{"id":"sr-3e884a0624dc53a91a00a88c5b4543df","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2025-59342","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.372Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f50dac08fa296a704c9caf597880db42"],"technology":"github.com/esm-dev/esm.sh","known_exclusions":[],"conditions_summary":"## Summary\n\nA path-traversal flaw in the handling of the `X-Zone-Id` HTTP header allows an attacker to cause the application to write files outside the intended storage location. The header value is used to build a filesystem path but is not properly canonicalized or restricted to the application’s storage base directory. As a result, supplying `../` sequences in `X-Zone-Id` causes files to be written to arbitrary directories (example observed: `~/.esmd/modules/transform//` instead of `~/.esmd/storage/modules/transform`).\n\n**Severity:** Medium\n\n**Component / Endpoint:** \n\n`POST /transform` — handling of `X-Zone-Id` header\n\nThe vulnerable code is in https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L116 and https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L411 \n\n**Impact:** Arbitrary file creation / overwrite outside intended storage directory (file write to attacker-controlled path). Possible remote code execution, persistence, tampering with application files, or facilitating further path-traversal attacks.\n\n---\n\n## Proof of Concept (POC)\n\nRequest (attacker-supplied `X-Zone-Id` contains path traversal):\n\n```\nPOST /transform HTTP/1.1\nHost: localhost:8888\n","public_affected_ranges":["<= 136"]}],"null_published_at":"2026-10-31T23:18:17.197Z","source_updated_at":"2026-10-29T02:09:47.000Z","source_disclosed_at":"2025-09-17T19:03:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:56:08.420Z"},{"id":"NVI-00009207","kind":"vulnerability","title":"esm.sh has arbitrary file write via path traversal in `X-Zone-Id` header","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-g2h5-cvvr-7gmw","CVE-2025-59342"],"plain_summary":"GitHub lists this reviewed advisory for github.com/esm-dev/esm.sh. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-f50dac08fa296a704c9caf597880db42"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-f50dac08fa296a704c9caf597880db42","url":"https://github.com/advisories/GHSA-g2h5-cvvr-7gmw","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-g2h5-cvvr-7gmw","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T21:56:08.420Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f50dac08fa296a704c9caf597880db42"],"technology":"github.com/esm-dev/esm.sh","known_exclusions":[],"conditions_summary":"## Summary\n\nA path-traversal flaw in the handling of the `X-Zone-Id` HTTP header allows an attacker to cause the application to write files outside the intended storage location. The header value is used to build a filesystem path but is not properly canonicalized or restricted to the application’s storage base directory. As a result, supplying `../` sequences in `X-Zone-Id` causes files to be written to arbitrary directories (example observed: `~/.esmd/modules/transform//` instead of `~/.esmd/storage/modules/transform`).\n\n**Severity:** Medium\n\n**Component / Endpoint:** \n\n`POST /transform` — handling of `X-Zone-Id` header\n\nThe vulnerable code is in https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L116 and https://github.com/esm-dev/esm.sh/blob/main/server/router.go#L411 \n\n**Impact:** Arbitrary file creation / overwrite outside intended storage directory (file write to attacker-controlled path). Possible remote code execution, persistence, tampering with application files, or facilitating further path-traversal attacks.\n\n---\n\n## Proof of Concept (POC)\n\nRequest (attacker-supplied `X-Zone-Id` contains path traversal):\n\n```\nPOST /transform HTTP/1.1\nHost: localhost:8888\n","public_affected_ranges":["<= 136"]}],"null_published_at":"2026-10-31T22:13:31.290Z","source_updated_at":"2026-10-29T02:09:47.000Z","source_disclosed_at":"2025-09-17T19:03:05.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:56:08.420Z"}],"next_cursor":null,"snapshot_revision":"42594"}