# CVE-2026-135139: Incorrect authorization in has_many delete_all in Mongoid

- Severity: Medium 6.0 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 41% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-25T17:45:12.884Z
- Modified: 2026-11-25T20:18:36.900Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: mongodb

## Description

Mongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association. Conditions already attached to the association can take precedence over the filter the caller supplied, so records the caller did not select may be removed. A user with basic privileges in an application built on the library may cause unintended removal of records belonging to the same parent record.

(As written by CVE List.)

## Affected

- MongoDB Ruby Driver: from 2.1.0 before 9.1.3

## Every score

- mongodb: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://jira.mongodb.org/browse/MONGOID-6030> (exploit)

## Sources

- CVE List: [CVE-2026-135139](https://www.cve.org/CVERecord?id=CVE-2026-135139), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-135139](https://nvd.nist.gov/vuln/detail/CVE-2026-135139), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-135139 · Whole record: https://cve.day/CVE-2026-135139.json · Rebuilt by cve.day 2026-11-25T23:18:30.045Z
