---
id: CVE-2026-88028
title: >-
  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 tha…
summary: >-
  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 tha…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-943
vendor: MongoDB
product: Laravel MongoDB (PHP)
affected:
  - laravel_mongodb_php >= 1.2.0 < 5.11.0
published: '2026-09-10'
updated: '2026-09-10'
sourceUpdated: '2026-09-10T19:54:25.810'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-88028'
references:
  - url: 'https://jira.mongodb.org/browse/PHPLARA-265'
    label: cna@mongodb.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-10T18:24:34.503012Z'
ingestedAt: '2026-09-13T10:44:26.751Z'
epss: 0.00412
epssPercentile: 0.32757
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
