ZeroHour

CVE-2026-88028

large

Query injection in MongoDB-Laravel polymorphic relations returns unintended documents

CVSS 4.0
7.1 high
EPSS
Published
()
Modified
AI analysis

CVE-2026-88028 is an improper neutralization flaw (CWE-943) in the query logic that handles polymorphic relations in the MongoDB integration for Laravel. When an authenticated user can influence a stored relation identifier, the caller-supplied identifier is interpreted as part of the query condition instead of as a literal identifier, so the lookup matches more documents than intended. As a result, an attacker with valid credentials can cause the application to return a document other than the intended relation target, effectively a cross-reference information-disclosure issue limited to confidentiality. Affected applications are Laravel applications backed by MongoDB that use the polymorphic relation features of the integration. The flaw carries a CVSS 4.0 base score of 7.1 (High), there is no known public proof-of-concept, it is not listed in CISA's Known Exploited Vulnerabilities catalog, and no in-the-wild exploitation is known.

What to do: Consult the MongoDB CNA advisory for this CVE to determine which releases of the Laravel MongoDB integration are affected and upgrade to the fixed version it specifies. Meanwhile, audit whether your application uses polymorphic (morph) relations backed by MongoDB with caller-controlled relation identifiers, and validate or whitelist those identifiers server-side so they cannot be parsed as query conditions. Because the issue requires authentication and only affects confidentiality, prioritize remediation for applications that expose relation targets to logged-in users.

Affected
MongoDB integration for Laravel (mongodb/laravel-mongodb)
Estimated exposure
largelikely on the order of tens of thousands of applications, of which only those using polymorphic relations with user-influenceable identifiers are actually… — Laravel is one of the most widely used PHP frameworks and this package is the standard MongoDB bridge for it, so deployment patterns suggest a broad installed base, but no authoritative active-install figure exists in the available data.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Improper neutralization of special elements in data query logic in the polymorphic relation handling of the MongoDB integration for Laravel can cause a caller-supplied relation identifier to be interpreted as a query condition rather than as a literal identifier. An authenticated user who can influence a stored relation identifier may cause an affected application to return a document other than the intended relation target.

Weakness
CWE-943
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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

In the news

No ingested article mentions this CVE yet.