CVE-2026-120567

EF Core provider: pipeline-form ExecuteUpdate evaluates a user string setter as a $-field reference

Low published · updated

2.3
CVSS score out of 10 · NVD (mongodb.com)

Description

The MongoDB Entity Framework Core provider does not neutralize special elements in values passed to SetProperty when an ExecuteUpdate call also contains a setter that reads the entity being updated. In that case the update is sent as an aggregation pipeline, and a caller-supplied string beginning with $ is evaluated as an expression rather than stored as data. A party who can influence such a value may modify or remove fields in the records being updated, or copy other fields of the same record into them.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
entity framework core provider mongodb ≤9.1.4; ≤10.0.4— CVE.org

References