Medusa 2.0.0 before 2.22.5 Prototype Pollution via Dotted Query Field Paths

Summary

CVECVE-2026-144440
StatePUBLISHED
AssignerAISLE
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 21:18:13 UTC
Updated2026-12-03 21:18:13 UTC
DescriptionMedusa 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.

Risk And Classification

Primary CVSS: v4.0 6.9 MEDIUM from 1a4f025a-074d-4105-b4e2-52bd8eabe2ea

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Problem Types: CWE-1321 | CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')


VersionSourceTypeScoreSeverityVector
4.01a4f025a-074d-4105-b4e2-52bd8eabe2eaSecondary6.9MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/C...
4.0CNADECLARED6.9MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
3.11a4f025a-074d-4105-b4e2-52bd8eabe2eaSecondary6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
3.1CNADECLARED6.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

CVSS v4.0 Breakdown

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Confidentiality
None
Integrity
Low
Availability
Low
Sub Conf.
None
Sub Integrity
None
Sub Availability
None

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
Low

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA MedusaJS Medusa affected 2.0.0 2.22.5 semver Not specified

References

ReferenceSourceLinkTags
github.com/medusajs/medusa 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
github.com/medusajs/medusa/commit/7dd3c28fba6b74aaab84612b696cab597e12c667 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
github.com/medusajs/medusa/pull/17712 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
github.com/medusajs/medusa/pull/16702 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
github.com/medusajs/medusa/releases/tag/v2.22.5 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
github.com/medusajs/medusa/commit/df8c278d615229436be5b299ebdc76a576695fc3 1a4f025a-074d-4105-b4e2-52bd8eabe2ea github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: Pavel Kohout (AISLE Research) (en)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report