Read the docs

Prototype pollution in MedusaJS Medusa order parameter causes denial of service

Priority MEDIUM 53CWE-1321Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

Medusa 1.8.0 through 1.20.11 and 2.8.5 before 2.18.0 contains a prototype pollution flaw in buildOrder() that splits order keys on dots without rejecting __proto__, constructor or prototype (CWE-1321). An unauthenticated remote attacker can send one request with a crafted order parameter to Store API list endpoints such as /store/products, which sets an attacker-named property on Object.prototype. The inherited property then breaks API responses for all users until the server process restarts.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

Description from the CNA

Medusa 1.8.0 through 1.20.11 and 2.8.5 before 2.18.0 contains a prototype pollution vulnerability in buildOrder() (packages/core/utils/src/common/build-query.ts in 2.x) that splits each order key on dots and walks the segments without rejecting __proto__, constructor or prototype, so an order value of the form __proto__.<name> sets an attacker-named property on Object.prototype. In 2.8.5 through 2.17.x, prepareListQuery() passes the order query parameter to buildOrder(), so unauthenticated attackers can send one request with a crafted order parameter to Store API list endpoints that have no allowed-field list, such as /store/products, and the inherited property is then copied into later queries, for example by toRemoteQuery(), breaking API responses for all users until the server process restarts. The end-of-life 1.x line reaches the same code through buildQuery() from Admin API list endpoints and, in 1.20.x, from the unauthenticated /store/regions endpoint.

Why it matters now

Fix Fixed Medusa (MedusaJS): 2.18.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
MedusaJSMedusa1.8.0 – 1.20.11; 2.8.5 to before 2.18.02.18.0Patch availableCNA
  • Medusa VendorMedusaJS Affected 1.8.0 – 1.20.11; 2.8.5 to before 2.18.0 Fixed in 2.18.0 Patch available CNA

Remediation

Upgrade Medusa 2.x to 2.18.0 or later. The sources list no fixed version for Medusa 1.x, which is end-of-life, so affected 1.x deployments have no listed fix.

Written with Claude Haiku 5.5 from the sources below · 2026-12-04

  • Fix · CNA Medusa (MedusaJS) Fixed in 2.18.0

Timeline

  1. 2026-12-03 Threatist record created from CVE-2026-144441
  2. 2026-12-03 Alias added: GHSA-hv98-6qj6-979w
  3. 2026-12-03 Title updated · CNA
  4. 2026-12-03 Affected versions changed · CNA

References

  • TI-2026-103889 Prototype pollution in Medusa via dotted query field paths CVSS 4.0MEDIUM 6.9
  • TI-2026-99187 Path traversal in Medusa import lets admins access system files CVSS 4.0MEDIUM 5.1

Sources