What is CVE-2026-135138?
CVE-2026-135138 is a medium-severity business logic flaw vulnerability in MongoDB Ruby Driver, published on 25 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Mongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller. In an application that forwards caller-supplied attribute names into a document update, a user with basic application privileges may change values held inside a field the model declared immutable. This may result in unintended modification of data the application treats as trusted, such as flags used for its own access decisions.
Weakness: CWE-915
How severe is CVE-2026-135138?
CVE-2026-135138 scores 6.0 out of 10 under CVSS 4.0, which is medium severity. It was scored by Mongodb.
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Which versions are affected by CVE-2026-135138?
An affected version is only exploitable if your software uses the vulnerable function or option. Many projects that include it are not exposed.
How do I fix CVE-2026-135138?
No fix has been published for CVE-2026-135138 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-135138 being exploited?
There is no known exploitation of CVE-2026-135138 in the wild and no public exploit code.
Sources
Also known as GHSA-wrx7-gv98-4q54.