---
id: "CVE-2026-118510"
kind: "vulnerability"
aliases: ["CVE-2026-118510"]
title: "MongoDB integration library: relationship queries can expose or alter withheld documents"
severity: "high"
cvss: 8.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["mongodb", "node.js", "package"]
not_affected_if: ["authorization-not-query-based", "no-relationship-queries"]
published_at: "2026-10-28T17:18:26+00:00"
first_seen_at: "2026-10-28T17:34:09+00:00"
updated_at: "2026-10-28T17:34:18+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-118510", "first_seen_at": "2026-10-28T17:34:09+00:00"}]
---

# MongoDB integration library: relationship queries can expose or alter withheld documents

A type-handling flaw in the relationship query builder of a MongoDB integration library compiles absence checks with an identifier of the wrong type, silently. An application that relies on such a check to limit access can let a low-privilege user read, change or delete documents the check was meant to hide.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- unknown

## Fix

- unknown

## Timeline

- 2026-10-28T17:34:09+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-118510

## From the sources

A type-handling flaw in the relationship query building of this MongoDB integration library can cause a check for the absence of a related record to be compiled with an identifier of the wrong data type. In an application that relies on such a check to decide which documents a request may see or act on, a user with basic privileges may be served, may change, or may remove documents that the check was intended to withhold. The failure is silent and produces no error.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
