CVE-2026-81528: NoSQL injection via array replacement bypassing update shape validation in driver write path

Published Aug 27, 2026
·
Updated

A MongoDB C# driver document-replacement code path omits the element-name/shape validation that the equivalent write paths apply, so a value supplied as a replacement is forwarded to the server without neutralization of query-language special elements. An application that passes untrusted, loosely-typed input as a replacement value therefore allows that input to be interpreted by the database as update logic rather than as data, executing under the application's own database credentials. Applications using strongly-typed document mappings are not affected.

Affected Software

1 affected component
MongoDB MongoDB C# Driver

Event History

Aug 27, 2026
CVE Published
via MITRE·06:32 PM
Data Sourced
via MITRE·06:32 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications are exposed if they pass untrusted, loosely typed input as a document replacement through the affected MongoDB C# driver write path. Applications using strongly typed document mappings are not affected.

2

What must an attacker be able to do to exploit it?

An attacker needs to supply a replacement value through an application path that accepts untrusted, loosely typed input. The injected update logic executes using the application's database credentials.

3

What can be done while assessing or mitigating exposure?

Avoid passing untrusted loosely typed values as replacement documents, and use strongly typed document mappings where possible. Review replacement-style write operations separately from other update paths, because the omitted validation is specific to the document-replacement path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203