CVE-2026-144440
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| medusajs | medusa | {"startIncluding":"2.0.0","endExcluding":"2.22.5"} | 2.22.5 |
References
- https://github.com/medusajs/medusa
- https://github.com/medusajs/medusa/commit/7dd3c28fba6b74aaab84612b696cab597e12c667
- https://github.com/medusajs/medusa/commit/df8c278d615229436be5b299ebdc76a576695fc3
- https://github.com/medusajs/medusa/pull/16702
- https://github.com/medusajs/medusa/pull/17712
- https://github.com/medusajs/medusa/releases/tag/v2.22.5
CWEs
CWE-1321
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.