CVE-2026-118510

Source
https://cve.org/CVERecord?id=CVE-2026-118510
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118510.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-118510
Published
2026-10-28T16:15:08Z
Modified
2026-11-07T02:30:19Z
Severity
  • 7.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Laravel MongoDB `whereDoesntHave` misses deny records for numeric string IDs
Details

A type-handling flaw in the relationship query building of this MongoDB integration library can cause a check for the absence of a related record to be compiled with an identifier of the wrong data type. In an application that relies on such a check to decide which documents a request may see or act on, a user with basic privileges may be served, may change, or may remove documents that the check was intended to withhold. The failure is silent and produces no error.

Database specific
{
    "cna_assigner": "mongodb",
    "cwe_ids": [
        "CWE-843"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118510.json"
}
References

Affected packages

Git / github.com/mongodb/laravel-mongodb

Affected ranges

Type
GIT
Repo
https://github.com/mongodb/laravel-mongodb
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "3.2.3"
                },
                {
                    "fixed": "5.12.0"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "original_tag": "5.12.0",
            "range": [
                {
                    "fixed": "faea6c1c6e34098becd7dd24f19ebaabb824aca0"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

3.*
3.6.5
3.8.4
3.9.3
4.*
4.0.0
4.0.0-rc1
4.1.0
4.1.1
4.2.0
4.3.0
4.4.0
4.5.0
4.6.0
4.7.0
5.*
5.0.0-rc1
5.1.0
5.10.0
5.11.0
5.2.0
5.3.0
5.4.0
5.5.0
5.6.0
5.7.0
5.8.0
5.9.0
5.9.1
v3.*
v3.2.3
v3.3.0
v3.3.0-alpha
v3.3.1
v3.4.0
v3.4.1
v3.4.2
v3.4.3
v3.4.4
v3.4.5
v3.4.6
v3.5.0
v3.5.1
v3.5.2
v3.5.3
v3.6.0
v3.6.1
v3.6.2
v3.6.3
v3.6.4
v3.6.5
v3.7.0
v3.8.0
v3.8.1
v3.8.2
v3.8.3
v3.9.0
v3.9.1
v3.9.2
v3.9.4
v4.*
v4.0.0-ALPHA1
v4.0.0-ALPHA2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118510.json"