Read the docs

Incorrect authorization in Mongoid has_many delete_all removes extra records

Priority LOW 27CWE-863Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
Present
Impact type
Security bypass
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.

Summary

Mongoid, a Ruby object-document mapper for MongoDB, contains an incorrect authorization weakness in bulk removal through a referenced has_many association. Conditions already attached to the association can take precedence over the filter the caller supplies, so records the caller did not select may be removed. A user with low privileges in an application built on the library can cause removal of other records belonging to the same parent record, as CWE-863 describes.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

Description from the CNA

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 now

EPSS 0.00452 31st percentileScored 2026-11-30
Fix Fixed Ruby Driver (MongoDB): 9.1.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
MongoDBRuby Driver2.1.0 to before 9.1.39.1.3Patch availableCNA
  • Ruby Driver VendorMongoDB Affected 2.1.0 to before 9.1.3 Fixed in 9.1.3 Patch available CNA

Remediation

MongoDB Ruby Driver (Mongoid) versions from 2.1.0 before 9.1.3 are affected, and version 9.1.3 fixes the flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-25

  • Fix · CNA Ruby Driver (MongoDB) Fixed in 9.1.3

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    MongoDB Ruby Driver 9.1.3

    6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW

    Other records, highest priority first

    • TI-2026-98380 Improper restriction of object attributes in Mongoid belongs_to assignmentPriority MEDIUM 43
    • TI-2026-98378 Incorrect authorization from a discarded default scope in MongoidPriority LOW 38
    • TI-2026-98374 Cleartext storage of encrypted embedded fields in MongoidPriority LOW 31

Timeline

  1. 2026-11-25 Threatist record created from CVE-2026-135139
  2. 2026-11-25 Alias added: GHSA-9p32-jgc3-hmrv

References

  • TI-2019-08023 Remote code execution in mongo-express via toBSON endpoints KEVCVSS 3.1CRITICAL 9.9
  • TI-2025-13542 Zlib header length mismatch in MongoDB Server allows memory read KEVCVSS 4.0HIGH 8.7
  • TI-2026-89295 MongoDB Server Missing Authorization Check in Replication Administrative Command CVSS 4.0HIGH 8.6
  • TI-2026-89289 Incorrect authorization in MongoDB Server allows admin access CVSS 4.0HIGH 8.6
  • TI-2026-79432 BSON output corruption via out-of-range binary subtype in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
  • TI-2026-79424 NoSQL command injection via mismatched BSON length in MongoDB C# Driver CVSS 4.0MEDIUM 6.9
See all 449 →

Sources