Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6CVE-2026-135139

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

MongoDB Ruby Driver

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-135139: medium-severity vulnerability (CVSS 6) in MongoDB Ruby Driver.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.

Affected products and versions

MongoDB Ruby Driver >= 2.1.0, < 9.1.3

ProductVersionsFixed in
MongoDB Ruby Driver>= 2.1.0, < 9.1.3—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-863

Relevant change history

  1. Published

    Preliminary advisory published.