CVE-2026-112189

Path Traversal in Medusa by MedusaJS

Published Nov 27, 2026 CVSS 4.0 · 5.1 Medium EPSS n/a KEV · Not listed
Description
A path traversal vulnerability in Medusa’s product import functionality, specifically in the handling of the 'file_key' parameter of the '/admin/products/imports' endpoint. The lack of proper validation allows an authenticated remote attacker with administrative access to reference system files outside the intended import directory. When attempting to process these files as CSV files, the application may partially reveal their contents through parsing or validation error messages. Additionally, cleanup routines operate on paths controlled by the attacker, which could allow the deletion of files accessible to the application process and affect system availability.

Analysis

AI-generated

Technical impact

A path traversal flaw exists in Medusa’s product import feature. The application does not properly validate the ‘file_key’ parameter sent to the /admin/products/imports endpoint. An authenticated attacker with administrative privileges can point the import process to arbitrary files on the server. When those files are processed as CSVs, error messages or parsing attempts may inadvertently reveal partial contents. Additionally, cleanup operations that receive attacker‑controlled paths can delete files that the application can read, potentially impacting service availability.

Affected Systems

This vulnerability affects installations of MedusaJS Medusa version 2.14.2. No evidence suggests that it exists in later releases, and a fix has not yet been provided by the vendor.

Risk and Exploitability

The CVSS score of 5.1 indicates medium severity. The EPSS score is unavailable, so the likelihood of exploitation is uncertain. Because exploitation requires authenticated administrative access, the threat is limited to organizations with compromised admin accounts. The vulnerability is not listed in CISA’s KEV catalog, suggesting it has not been observed in the wild, but the absence of a published patch increases the temptation for custom exploitation.

Remediation

Vendor Solution

No solution has been reported at this time.


OpenCVE Recommended Actions

  • Enforce strict validation on the ‘file_key’ parameter to ensure that any referenced path resides within the designated import directory and that the file is a legitimate CSV before processing.
  • Restrict access to the /admin/products/imports endpoint so that only trusted administrators may invoke it.
  • Apply file‑system permissions that prevent the application from reading or deleting files outside its own workspace, thereby limiting disclosure and availability impact.

Generated by OpenCVE AI on November 27, 2026 at 12:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description A path traversal vulnerability in Medusa’s product import functionality, specifically in the handling of the 'file_key' parameter of the '/admin/products/imports' endpoint. The lack of proper validation allows an authenticated remote attacker with administrative access to reference system files outside the intended import directory. When attempting to process these files as CSV files, the application may partially reveal their contents through parsing or validation error messages. Additionally, cleanup routines operate on paths controlled by the attacker, which could allow the deletion of files accessible to the application process and affect system availability.
Title Path Traversal in Medusa by MedusaJS
First Time appeared Medusajs
Medusajs medusa
Weaknesses CWE-22
CPEs cpe:2.3:a:medusajs:medusa:2.14.2:*:*:*:*:*:*:*
Vendors & Products Medusajs
Medusajs medusa
References
Metrics cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
INCIBE
Published
Updated
Nov 27, 2026, 9:23 AM
Reserved
Oct 19, 2026, 9:22 AM
Status
Received
Published
Nov 27, 2026, 10:17 AM
Modified
Nov 27, 2026, 10:17 AM