Skip to main content

Mongoid CVE-2026-135227

| EUVDEUVD-2026-135616 HIGH
Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915)
2026-11-25 mongodb GHSA-9h3x-67qv-f384
8.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit request with structured input replacing an ID value
  2. Delivery
    Application forwards unfiltered params into Mongoid association handling
  3. Exploit
    Input coerced into object treated as stored record of chosen model
  4. Execution
    Unintended modification or deletion of persisted records
  5. Impact
    Targeted record rendered unreadable via association

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V4 - API and Web Service Object attribute protection
Exploitation Conditions

Exploitation requires the affected application to pass unfiltered, attacker-controlled request data directly into Mongoid's association assignment, where a structured value (such as a nested hash) is accepted in place of a simple scalar identifier. The attack is remote and unauthenticated (PR:N/UI:N), but the AT:P requirement means it only works where this unsafe data flow exists - applications that cast association inputs to scalar IDs, use strong-parameter filtering, or otherwise sanitize params before assignment are not exploitable. The precise minimum vulnerable configuration and affected versions are not described in the available sources.

Impact

This is a genuine priority for the subset of applications that are actually vulnerable, but the raw CVSS 8.3 overstates blanket risk. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) shows a remote, unauthenticated, low-complexity attack, and the AT:P (Attack Requirement: Present) flag is the key qualifier: exploitation is contingent on the application passing unfiltered request data into Mongoid's association handling, which is an application-coding precondition rather than a flaw reachable in every default deployment. Impact is concentrated on integrity (VI:H) with minor availability loss (VA:L) and explicitly no confidentiality impact (VC:N) - meaning this is a data-tampering/record-manipulation issue, not data theft, despite the 'Information Disclosure' tag. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score, KEV listing, or working PoC was provided - the only reference is the MongoDB Jira ticket MONGOID-5969 - so there is no evidence of active exploitation or weaponization; treat this as a patch-this-cycle issue for teams running affected Mongoid versions with request data flowing into associations.

Exploit ScenarioDerived

An unauthenticated user submits a crafted HTTP request to a Rails/Ruby endpoint where the application assigns an association from untrusted parameters, supplying a structured object (e.g., a nested hash) in place of a plain identifier value. Mongoid turns that input into an object treated as an already-persisted record of an attacker-chosen model class, letting the attacker modify or delete stored records or render a record unreadable through that association. No public exploit identified at time of analysis; only the vendor Jira ticket is referenced.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Improper control of dynamically determined object attributes (mass assignment) in Mongoid's association handling allows a structured value such as a nested hash, supplied where a simple identifier is expected, to be turned into an object that Mongoid treats as an already-persisted record of a caller-chosen model class. Applications that pass unfiltered, attacker-controlled request data straight into association assignment are exposed to unauthenticated modification or deletion of stored documents via that association, and a single record can be made unreadable through it; the assessed vector shows integrity impact high, availability impact low, and no confidentiality impact. The flaw is only reachable where that unsafe data flow exists - apps that cast association inputs to scalar IDs or filter parameters are not exploitable - and no public exploit code or confirmed in-the-wild exploitation has been identified at time of analysis, though the vuln.today priority label places remediation within this week.

RemediationAI

No vendor-released patch version is identified in the available sources, so the primary action is to track https://jira.mongodb.org/browse/MONGOID-5969 for the fixed release line and upgrade as soon as MongoDB publishes it; because the priority label is this_week, treat that tracking and the interim controls below as near-term work rather than backlog. In the meantime, break the required data flow: explicitly cast association inputs to scalar IDs before assignment (Integer or String casting, or BSON::ObjectId conversion where applicable) so a nested hash is rejected instead of being materialised as a record - the trade-off is that legitimate callers passing nested attributes will need a separate, explicitly permitted path. Alternatively enforce strong-parameter filtering with an allowlist that admits only the identifier key for each association, which stops the structured value reaching the setter but requires auditing every controller that writes associations. Where associations are polymorphic, pin the permitted class server-side rather than deriving it from request data, accepting the loss of client-driven flexibility. Applications that do not pass raw request data into association assignment can deprioritise patching but should still adopt the casting controls before any future endpoint does so. Because the impact is integrity and availability on stored documents, take a current backup of affected collections before deploying either the upgrade or the parameter-handling changes.

Affected VersionsENISA

Ruby Driver 9.1.0 <9.1.3

Affected Packages

euvd ruby_driver fix: 9.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mongoid is the Ruby object-document mapper for MongoDB: Ruby classes declare associations (belongs_to, has_many, has_one and their polymorphic variants) whose setters normally accept an identifier or a document and resolve it to a stored record. The weakness is CWE-915, improper control of dynamically determined object attributes: when a nested hash or similarly structured value is accepted in place of a scalar identifier, the association machinery builds an object from the attacker's attribute keys and treats it as an existing, persisted record, including for a model class the caller selects rather than one the server-side code fixed. That gives an attacker control over which document class is targeted and over its attributes, which is why the assessed impact is integrity-high (records modified or removed) and availability-low (a record rendered unreadable through the association) with confidentiality unaffected. The CVSS 4.0 AT:P component and the assessed 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L) both describe severity and prerequisites, not the trigger mechanism: the affected application must itself pass attacker-controlled request data into the association setter. The precise minimum vulnerable configuration, the exact triggering input shape, and the affected version range are not described in the available sources; the only CPE supplied is cpe:2.3:a:mongodb:ruby_driver with a wildcard version, so the version boundary is unconfirmed.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
vuln.today AI 8.2 HIGH

Remote unauthenticated input abuse (AV:N/PR:N) yields high integrity impact (I:H) via record tampering and minor availability loss (A:L); no confidentiality impact (C:N) per vendor VC:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 25, 2026 - 19:18 EUVD
CVE Published
Nov 25, 2026 - 17:43 cve.org
HIGH 8.3

DescriptionCVE.org

An improper restriction of dynamically determined object attributes in the object-document mapping library's association handling allows structured input supplied in place of a simple identifier value to be turned into an object that is treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into the affected association handling, an unauthenticated party may cause unintended modification or removal of stored records, and may render an individual record unreadable through that association.

Executive ViewAI

Why It Matters

A high-severity mass-assignment flaw in the Mongoid Ruby object-mapping library exposes Rails applications that pass unfiltered user input directly into database associations, letting attackers alter or delete stored records without logging in and in some cases render records unreadable. Any product built on Mongoid that follows this unsafe input pattern is at risk of data integrity and availability damage, so engineering and product leadership should treat this as a data-trust issue rather than a narrow library bug.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigation: enforce strong parameters and cast association inputs to scalar IDs, rejecting nested hashes before association assignment; restrict write endpoints and monitor for anomalous document modification or deletion.

Threat Intelligence Overview

EPSS Score
0.6%
Top 57% exploitable
Prevalence
Medium
Popular Ruby/Rails ODM library, but limited to MongoDB-backed Ruby applications
Social Media
2
Sightings
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +42
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2026-118383 CRITICAL POC
9.5 Nov 10

Use-after-free in MongoDB Server's replication component can terminate replica set members unexpectedly and, under certa

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-137498 CRITICAL
9.9 Nov 26

Unauthenticated MongoDB filter erasure in Budibase Server 3.39.18 through 3.44.0 lets a remote attacker read, modify, or

CVE-2026-129987 CRITICAL
9.9 Nov 18

Authenticated command injection in Dokploy before 0.31.1 lets any user who can update a MySQL, PostgreSQL, MariaDB, Mong

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy