Skip to main content

BSON for Ruby CVE-2026-135226

| EUVDEUVD-2026-135617 HIGH
Access of Resource Using Incompatible Type (Type Confusion) (CWE-843)
2026-11-25 mongodb
8.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Supply crafted Extended JSON to parser
  2. Exploit
    Trigger type confusion in document framing
  3. Execution
    Value content reinterpreted as extra/replacement fields
  4. Impact
    Unintended modification of stored data

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Type safety enforcement
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target application (1) accepts attacker-supplied input, (2) parses that untrusted input specifically as Extended JSON using the MongoDB BSON for Ruby component, and (3) stores the parsed result. These are the concrete prerequisites: an application that only handles trusted/internal Extended JSON, parses plain BSON, or does not persist the parsed document is not exploitable. Per the CVSS vector (PR:N/UI:N) no authentication or user interaction is needed, so where the above data-flow exists, an unauthenticated remote party can trigger it against default library behavior. Impact is limited to data integrity (field injection/replacement) - no confidentiality loss or service disruption.

Impact

This is a genuine but bounded integrity-only issue, not a theoretical high-CVSS inflation. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N, score 8.7) indicates a network-reachable flaw requiring no authentication, no user interaction and low complexity, which legitimately drives a high base score. However, impact is confined to integrity: VI:H with VC:N and VA:N means no confidentiality loss and no availability/denial-of-service - the only consequence is unintended modification of stored data. This directly contradicts two of the input Tags ('Information Disclosure' and 'Memory Corruption'), both of which are inconsistent with VC:N/VA:N and with a logical type-confusion (CWE-843) in a Ruby Extended JSON parser. The vuln.today decision label is 'this_week' (not act_now or emergency), and no EPSS score, CISA KEV listing, or public exploit was provided - the sole reference is a MongoDB Jira tracking ticket (RUBY-3936), not proof-of-concept code. Net: prioritize for patching this week in environments that parse untrusted Extended JSON into a datastore, but this is an integrity/data-tampering risk, not a code-execution or data-theft emergency. EPSS and active-exploitation signals are absent and should not be assumed.

Exploit ScenarioDerived

An attacker submits crafted Extended JSON to an unauthenticated application endpoint that parses it with the MongoDB BSON for Ruby library and persists the result. Due to type confusion in how the parser frames the serialized document, content the attacker places inside one value is read back as additional or replacement document fields, letting the attacker tamper with stored records. No public exploit code was identified at time of analysis; only a vendor Jira issue is referenced.

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

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

Alert me

AnalysisAIv1 – Nov 25, 2026

Type confusion in the Extended JSON parsing component of the MongoDB BSON for Ruby library lets an unauthenticated remote party influence how a serialized document is framed, so content supplied in one value can be read back as additional or replacement document fields. Applications that accept attacker-controlled input, parse it specifically as Extended JSON with this library, and then persist the parsed document are exposed to integrity-only impact - stored records can be silently altered, with no confidentiality loss or service disruption per the assessed vector (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N). No public exploit code has been identified at time of analysis and the issue is not in CISA KEV; vendor tracking is via MongoDB JIRA RUBY-3936.

RemediationAI

No vendor-released patch version is identified in the available data; consult MongoDB JIRA RUBY-3936 (https://jira.mongodb.org/browse/RUBY-3936) for the fixed driver release and upgrade the bson gem as soon as that version is published, then re-serialize and re-validate any documents that were stored from untrusted Extended JSON input. Where an upgrade cannot be applied immediately, the highest-value compensating control is to stop passing untrusted data into the Extended JSON parser at all: accept plain JSON and perform explicit, type-checked field extraction into an allowlisted schema before persistence, at the cost of losing Extended JSON's native type round-tripping (ObjectId, dates, binary) and requiring application-side conversion code. If Extended JSON input must be accepted, parse it in an isolated context, validate the resulting document against a strict key allowlist and reject any unexpected or duplicate field names before writing to the datastore, accepting the trade-off that legitimate schema changes will require allowlist updates. Restricting who can reach the ingestion endpoint reduces exposure but is not sufficient on its own, because the assessed vector is PR:N/UI:N and no authentication or user interaction is required once a data flow into the parser exists.

Affected VersionsENISA

Ruby Driver 4.8.0 <5.2.1

Affected Packages

euvd ruby_driver fix: 5.2.1

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

Extended JSON is the human-readable JSON representation MongoDB uses to express typed BSON values (ObjectIds, dates, binary, numeric type wrappers and the like), and the BSON for Ruby library converts between that representation and native BSON documents. CWE-843 (Type Confusion) here means the parser can be induced to interpret a value as a different type than the one it was serialized as, so the decoded structure and the framing of the resulting document diverge from what the producer intended. Ruby's dynamic typing makes this class of bug particularly consequential for downstream persistence: once a value is materialised as a document fragment rather than a scalar, later field assignments can add or overwrite keys. The affected package is the MongoDB Ruby driver's BSON component (CPE cpe:2.3:a:mongodb:ruby_driver:*:*:*:*:*:*:*:*), and the vendor reference at https://jira.mongodb.org/browse/RUBY-3936 is the authoritative source for which driver releases carry the fix. The trigger is not described in the available sources beyond the Extended JSON parsing path; the CVSS metrics describe severity (AC:L, PR:N, UI:N) and should not be read as describing a race, timing or memory-corruption mechanism, despite the 'Memory Corruption' tag in the intelligence feed - the assessed impact is data integrity only.

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.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable untrusted-input parsing with no auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is tampering with stored data only, so I:H with C:N/A:N and unchanged scope.

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
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.7

DescriptionCVE.org

A type-confusion weakness in the Extended JSON parsing component of BSON for Ruby allows a party who can supply parser input to influence how a serialized document is framed. Content placed in one value may be read back as additional or replacement document fields. An unauthenticated party supplying input to an application that parses untrusted Extended JSON and stores the result may cause unintended modification of stored data.

Executive ViewAI

Why It Matters

CVE-2026-135226 is a high-severity type confusion vulnerability in the MongoDB BSON for Ruby library's Extended JSON parsing component. It allows unauthenticated remote attackers to alter stored documents when applications parse attacker-controlled input as Extended JSON and persist the result, compromising data integrity. Leadership should care because this could silently corrupt critical records, leading to financial and reputational damage.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include validating and sanitizing Extended JSON input before parsing, restricting access to affected endpoints, and monitoring vendor advisory for updates.

Threat Intelligence Overview

EPSS Score
0.5%
Top 64% exploitable
Prevalence
Medium
common MongoDB Ruby driver/BSON library, but limited to Ruby+MongoDB stacks
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.5%
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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-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-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-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