CVE-2026-144441: Medusa 2.0.0 before 2.18.0 Unauthenticated Denial of Service via Order Query Parameter Prototype Pollution
Medusa 2.0.0 before 2.18.0 contains a prototype pollution vulnerability in buildOrder() in packages/core/utils/src/common/build-query.ts that splits the order query parameter on dots and walks the segments with the ??= operator, so a value such as proto.polluted resolves to Object.prototype and the final assignment sets a property on it. Unauthenticated attackers can send one request with a crafted order parameter to Store API list endpoints such as /store/products, which have no allowed-field list, making toRemoteQuery() inject the polluted key into every later query graph and breaking API responses for all users until the server process restarts.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.18.0
Event History
Frequently Asked Questions
Which deployments are exposed?
Medusa versions from 2.0.0 before 2.18.0 are affected. Store API list endpoints such as /store/products are exposed because they have no allowed-field list for the order parameter.
What does an attacker need to exploit this issue?
An attacker does not need authentication or user interaction. They only need to send a request to a vulnerable Store API list endpoint with a crafted order parameter such as __proto__.polluted.
What is the operational impact after exploitation?
The crafted parameter pollutes Object.prototype, causing the polluted key to be injected into later query graphs. This can break API responses for all users until the affected server process is restarted.
What can be done if upgrading is not immediately possible?
The provided information identifies affected Store API list endpoints and the order query parameter as the attack path. Restricting or filtering crafted order parameter values, particularly prototype-related dot-path segments, can reduce exposure; restarting the server process clears the described impact after exploitation.