CVE-2026-135145
published high CVSS 4.0 · 7.6Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB | — | PHP Driver4.1.0 to < 5.12.2 · Other versions: unaffected | Affected | Not stated | mongodb |
Description
A polymorphic relationship query helper in the MongoDB Eloquent integration for Laravel resolves a record's type identifier inconsistently between the code that stores a relationship link and the code that searches for one. An application that relies on a relationship-absence query to restrict which records a request may see or change can therefore have that restriction silently fail, allowing a user with basic application privileges to read and to modify or remove records the restriction was meant to cover.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.6 / 10
- Severity
- high
- Provider
- mongodb · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 8.1 | high | mongodb · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB | PHP Driver | 4.1.0 to < 5.12.2 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-863 CWE-863: Incorrect Authorization
References
1Provider assertions
2mongodb · cna
Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 87a1208cef029acd00f19b470d80c927fc074145febf40608c49dcbdfc85e3e6
- Ingested
- 25 Nov 2026, 16:53:35 UTC
- Source record
- Official CVE record