---
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
affected:
  - 'laravel_mongodb >= 1.2.0, < 5.11.0'
patched:
  - laravel_mongodb 5.11.0
published: '2026-09-10'
updated: '2026-09-29'
sourceUpdated: '2026-09-29T16:11:32.310'
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
epss: 0.00421
epssPercentile: 0.36271
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-10T18:24:34.503012Z'
ingestedAt: '2026-09-13T10:44:26.751Z'
---

## 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.

## Affected

- `laravel_mongodb >= 1.2.0, < 5.11.0`

## Remediation

Upgrade past the affected range:

- `laravel_mongodb 5.11.0`
