CVE-2026-135227 Improper restriction of object attributes in Mongoid belongs_to assignment

Published Updated

Unauthenticated attackers can pass structured input to Mongoid belongs_to to modify or remove stored records in Ruby apps.

CVSS score

High

8.3/10

CVSS 4.0 · Scored by Mongodb Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
None listed
No fixed version published
Attack path
Over the internet
No login, no user action

What is CVE-2026-135227?

CVE-2026-135227 is a high-severity business logic flaw vulnerability in MongoDB Ruby Driver, published on 25 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-915

How severe is CVE-2026-135227?

CVE-2026-135227 scores 8.3 out of 10 under CVSS 4.0, which is high severity. It was scored by Mongodb.

Attack vector
Network
Attack complexity
Low
Attack requirements
Present
Privileges required
None
User interaction
None
Confidentiality
None
Integrity
High
Availability
Low

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

Which versions are affected by CVE-2026-135227?

An affected version is only exploitable if your software calls belongs_to. Many projects that include it are not exposed.

How do I fix CVE-2026-135227?

No fix has been published for CVE-2026-135227 yet. Limit exposure of the affected software until one is available.

Upgrade, and enforce each rule on the server at every step. More about Business logic flaw.

Is CVE-2026-135227 being exploited?

There is no known exploitation of CVE-2026-135227 in the wild and no public exploit code.

Sources

Also known as GHSA-9h3x-67qv-f384.

Is CVE-2026-135227 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free