Medusa 2.0.0 before 2.22.5 Prototype Pollution via Dotted Query Field Paths
- CVE-2026-144440
- GHSA-p2c6-m8q4-whq3
- EUVD-2026-143736
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.
Text from the CVE.org record.
Recommendation
MedusaJS Medusa
- If you run a version from 2.0.0 to before 2.22.5update to 2.22.5 or laterMinor version change: check the release notes
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
MedusaJS Medusa
Affected versions Fixed in from 2.0.0 to before 2.22.5 2.22.5
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.