Incorrect authorization from a discarded default scope in Mongoid
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-863.
Summary
Mongoid, the object-document mapper for MongoDB in Ruby, is affected from 4.0.0 before 9.1.3. A logic flaw in its query-building layer silently discards a model-level default scope that is meant to return no records, which is classified as CWE-863 (Incorrect Authorization). A user with low privileges who sends an ordinary request can read, change, or remove records that the restriction was meant to withhold.
Written with Claude Haiku 5.5 from the sources below · 2026-11-25
Description from the CNA
A logic flaw in the query-building layer of the Mongoid object-document mapper causes a model-level default restriction that is meant to return no records to be silently discarded when it is combined into a query. A user with basic application privileges who sends an ordinary request may read, change, or remove records that the restriction was intended to withhold.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade Mongoid to version 9.1.3, which fixes the issue, in the MongoDB Ruby Driver product.
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-98374 Cleartext storage of encrypted embedded fields in MongoidPriority LOW 31
- TI-2026-98376 Incorrect authorization in Mongoid has_many delete_all removes extra recordsPriority LOW 27
Timeline
- 2026-11-25 Threatist record created from CVE-2026-135141
- 2026-11-25 Alias added: GHSA-fpw8-vqgq-r7xv
References
More MongoDB vulnerabilities
- 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
Sources
- CVE-2026-135141 · CVE Program
- CVE-2026-135141 · NVD
- FIRST EPSS
- GHSA-fpw8-vqgq-r7xv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences