{"id":"CVE-2026-118510","kind":"vulnerability","aliases":["CVE-2026-118510"],"related":[],"title":"MongoDB integration library: relationship queries can expose or alter withheld documents","description":"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.","summary":"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.","severity":"high","cvss":8.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["mongodb","node.js","package"],"not_affected_if":["authorization-not-query-based","no-relationship-queries"],"how_to_check":"- unknown","fix":"- unknown","status":"open","published_at":"2026-10-28T17:18:26+00:00","first_seen_at":"2026-10-28T17:34:09+00:00","triaged_at":"2026-10-28T17:34:18+00:00","updated_at":"2026-10-28T17:34:18+00:00","category":"package","confidence":0.4,"triage":{"at":"2026-10-28T17:34:18Z","model":"claude-haiku-5-5","output":{"fix":"- unknown","reach":"internet","title":"MongoDB integration library: relationship queries can expose or alter withheld documents","impact":"high","summary":"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.","category":"package","nicknames":[],"who_cares":["mongodb","node.js"],"confidence":0.4,"needs_auth":"yes","worst_case":"low-privilege users read, modify or delete documents they should not reach","analyst_note":"Identify the library behind CVE-2026-118510 from the NVD entry and find its fixed version and workaround; the sources given do not name the product.","how_to_check":"- unknown","needs_analyst":true,"not_affected_if":["no-relationship-queries","authorization-not-query-based"],"who_is_affected":"Applications that use this MongoDB integration library's relationship query building to decide which documents a request may see or act on, and rely on a not-exists style check for that decision. Applications that do not use relationship queries for access control, or that do not use this library, are not exposed. The sources do not name the library or the fixed version.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000566,"input_tokens":3335,"output_tokens":465,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-118510':14A,17A '-2026':13A,16A 'absenc':37B,97C 'access':57B 'act':131C 'alter':9A 'applic':48B,115C 'basic':136C 'build':85C 'builder':30B 'caus':92C 'chang':66B,142C 'check':38B,54B,71B,94C,121C,149C 'compil':36B,104C 'cve':12A,15A 'data':111C 'decid':123C 'delet':68B 'document':11A,69B,125C,146C 'error':161C 'expos':7A 'failur':155C 'flaw':25B,80C 'handl':24B,79C 'hide':75B 'identifi':41B,107C 'integr':2A,34B,89C 'intend':151C 'let':59B 'librari':3A,35B,90C 'limit':56B 'low':62B 'low-privileg':61B 'may':128C,138C,141C,144C 'meant':73B 'mongodb':1A,18B,33B,88C 'node.js':19B 'packag':20B 'privileg':63B,137C 'produc':159C 'queri':5A,29B,84C 'read':65B 'record':101C 'relat':100C 'relationship':4A,28B,83C 'reli':50B,117C 'remov':145C 'request':127C 'see':129C 'serv':140C 'silent':46B,157C 'type':23B,45B,78C,112C 'type-handl':22B,77C 'user':64B,134C 'withheld':10A 'withhold':153C 'wrong':44B,110C","nicknames":[],"mitigations":[],"who_affected":"Applications that use this MongoDB integration library's relationship query building to decide which documents a request may see or act on, and rely on a not-exists style check for that decision. Applications that do not use relationship queries for access control, or that do not use this library, are not exposed. The sources do not name the library or the fixed version.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-28T17:18:26+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"cna@mongodb.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-118510","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118510","severity":null,"published_at":"2026-10-28T17:18:26+00:00","modified_at":"2026-10-28T17:18:26+00:00","first_seen_at":"2026-10-28T17:34:09+00:00","fetched_at":"2026-10-28T17:34:09+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}