Prototype pollution in Medusa via dotted query field paths
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
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
- 2026-12-03 Threatist record created from CVE-2026-144440
- 2026-12-03 Alias added: GHSA-p2c6-m8q4-whq3
References
Other 6
- https://github.com/medusajs/medusa/pull/17712
- https://github.com/medusajs/medusa/commit/7dd3c28fba6b74aaab84612b696cab597e12c667
- https://github.com/medusajs/medusa/pull/16702
- https://github.com/medusajs/medusa/commit/df8c278d615229436be5b299ebdc76a576695fc3
- https://github.com/medusajs/medusa/releases/tag/v2.22.5
- https://github.com/medusajs/medusa
More MedusaJS vulnerabilities
- 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
- CVE-2026-144440 · CVE Program
- CVE-2026-144440 · NVD
- GHSA-p2c6-m8q4-whq3 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences