This CVE exploits a fundamental mismatch between what Laravel's query builder API communicates to developers and what the MongoDB integration actually does. When you write $model->where('field', '=', $userInput), the explicit equality operator creates a reasonable expectation that the third argument will be treated as a literal value. That expectation breaks catastrophically when $userInput is an array — it gets interpreted as MongoDB query operators, bypassing your intended comparison entirely. The three-argument form with = is semantically redundant (the two-argument where('field', $value) already performs equality), yet it's this redundant form that carries the vulnerability. This is an abandoned-code problem: the three-argument form fell out of Laravel convention precisely because the two-argument form is safer, but the MongoDB integration still processes it — and critically, find and delete call this code path internally regardless of which form developers use directly. Your application is vulnerable through where(), but also through find(), delete(), and any scope or custom query builder method that constructs queries internally. The blast radius is radial: a single array input to any MongoDB-integrated query method becomes a potential vector across the entire query surface. The CVSS 7.7 score undersells this — exploitability is trivially cheap once you find any user-controlled input touching the MongoDB integration. Treat this as critical regardless of the official severity. Audit every model method that accepts user input and passes it to MongoDB queries, especially find, delete, and any custom scopes. Until a patch is available, treat all array-accepting MongoDB query methods as untrusted and validate inputs before they reach the query builder. The underlying issue is that MongoDB's operator-based query model and Laravel's SQL-trained abstraction have incompatible safety assumptions — this won't be the last vulnerability in this class.
CVE-2026-88022
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedImproper neutralization of special elements in data query logic in the MongoDB integration for Laravel can cause an array supplied to an explicit equality filter to be interpreted as a query condition rather than as a literal value. This affects the three-argument `where` method when the operator is `=` or `eq`, as well as the `find` and `delete` methods that use that code path. An attacker who can cause an affected application to supply an operator-shaped array to one of these APIs may obtain a document other than the intended target or delete documents beyond the intended target.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysisA detailed technical summary for this CVE is being prepared.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data>= 1.0.0, < 5.11.0CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:H
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor data5.11.0
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-88022 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesThis CVE exploits a fundamental mismatch between what Laravel's query builder API communicates to developers and what the MongoDB integration actually does. When you write `$model->where('field', '=', $userInput)`, the explicit equality operator creates a reasonable expectation that the third argument will be treated as a literal value. That expectation breaks catastrophically when `$userInput` is an array — it gets interpreted as MongoDB query operators, bypassing your intended comparison entirely. The three-argument form with `=` is semantically redundant (the two-argument `where('field', $value)` already performs equality), yet it's this redundant form that carries the vulnerability. This is an abandoned-code problem: the three-argument form fell out of Laravel convention precisely because the two-argument form is safer, but the MongoDB integration still processes it — and critically, `find` and `delete` call this code path internally regardless of which form developers use directly. Your application is vulnerable through `where()`, but also through `find()`, `delete()`, and any scope or custom query builder method that constructs queries internally. The blast radius is radial: a single array input to any MongoDB-integrated query method becomes a potential vector across the entire query surface. The CVSS 7.7 score undersells this — exploitability is trivially cheap once you find any user-controlled input touching the MongoDB integration. Treat this as critical regardless of the official severity. Audit every model method that accepts user input and passes it to MongoDB queries, especially `find`, `delete`, and any custom scopes. Until a patch is available, treat all array-accepting MongoDB query methods as untrusted and validate inputs before they reach the query builder. The underlying issue is that MongoDB's operator-based query model and Laravel's SQL-trained abstraction have incompatible safety assumptions — this won't be the last vulnerability in this class.
Practitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-88022 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data