Read the docs

Prototype pollution in Medusa via dotted query field paths

Priority MEDIUM 46CWE-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 · Low · Low
Fix status
Fixed

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

Summary

Medusa from 2.0.0 before 2.22.5 contains a prototype pollution flaw in remoteQueryObjectFromString() that does not reject __proto__, constructor or prototype in dot-separated field paths (CWE-1321). An unauthenticated remote attacker can send a crafted fields query parameter to Store API routes such as /store/regions in releases before 2.21.0, and authenticated users can do the same through Admin API routes before 2.22.5. The polluted Object.prototype corrupts relation field selections for all later queries and degrades API responses until the server process restarts.

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

Description from the CNA

Medusa 2.0.0 before 2.22.5 contains a prototype pollution vulnerability in remoteQueryObjectFromString() in packages/core/utils/src/common/remote-query-object-from-string.ts that walks each dot-separated segment of a requested field with the ??= operator without rejecting __proto__, constructor or prototype, so a path such as constructor.prototype.constructor.prototype.polluted reaches Object.prototype and creates a shared fields array on it. Unauthenticated attackers can send a crafted fields query parameter to Store API routes such as /store/regions in releases before 2.21.0, and authenticated users can do the same through Admin API routes until 2.22.5, corrupting the relation field selections of all subsequent queries and degrading API responses until the server process restarts.

Why it matters now

Fix Fixed Medusa (MedusaJS): 2.22.5

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
MedusaJSMedusa2.0.0 to before 2.22.52.22.5Patch availableCNA
  • Medusa VendorMedusaJS Affected 2.0.0 to before 2.22.5 Fixed in 2.22.5 Patch available CNA

Remediation

Upgrade Medusa to 2.22.5 or later.

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

  • Fix · CNA Medusa (MedusaJS) Fixed in 2.22.5

Timeline

  1. 2026-12-03 Threatist record created from CVE-2026-144440
  2. 2026-12-03 Alias added: GHSA-p2c6-m8q4-whq3

References

  • TI-2026-103890 Prototype pollution in MedusaJS Medusa order parameter causes denial of service CVSS 4.0HIGH 8.7
  • TI-2026-99187 Path traversal in Medusa import lets admins access system files CVSS 4.0MEDIUM 5.1

Sources