{"id":"CVE-2026-13057","summary":"Authorization Bypass via Client-Supplied $search.mergingPipeline Leaks Unauthorized Collection Data Through $$SEARCH_META","details":"An issue in the server’s Atlas Search integration allows an authenticated user to bypass per-user access controls.\n\n\n\nIn sharded topologies, the $search and $searchMeta aggregation stages use internal routing that is normally populated only by the trusted router during sharded search planning. Due to insufficient input validation, an authenticated client can supply these fields directly.","modified":"2026-08-07T08:11:17.403914Z","published":"2026-07-22T19:22:05.646Z","database_specific":{"cna_assigner":"mongodb","cwe_ids":["CWE-20"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13057.json","unresolved_ranges":[{"extracted_events":[{"introduced":"8.0"},{"fixed":"8.0.28"},{"introduced":"8.3.0"},{"fixed":"8.3.7"},{"introduced":"8.2.0"},{"fixed":"8.2.12"}],"source":"AFFECTED_FIELD"}]},"references":[{"type":"WEB","url":"https://jira.mongodb.org/browse/SERVER-126247"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/13xxx/CVE-2026-13057.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13057"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mongodb/mongo","events":[{"introduced":"b41cda4fe697dce6fd9b83b3805362ccc02fbeb3"},{"fixed":"dc5344b376fdfab0fe5b2982f125c056ab0abcd8"},{"introduced":"b993867dce63dd366cd93e60f3f425ed716f6497"},{"fixed":"10d50f5046de5c76a9d869823219134b3596905a"},{"introduced":"0f29b043a58fdd251ce0a0b32754b8459613c933"},{"fixed":"527067edda13efcac3d257b3cdb1c510c57b3c6e"}],"database_specific":{"cpe":"cpe:2.3:a:mongodb:mongodb:*:*:*:*:-:*:*:*","extracted_events":[{"introduced":"8.0.0"},{"fixed":"8.0.28"},{"introduced":"8.2.0"},{"fixed":"8.2.12"},{"introduced":"8.3.0"},{"fixed":"8.3.7"}],"source":"CPE_RANGE"}}],"versions":["r8.0.24","r8.2.10","r8.3.3","r8.3.0","r8.2.4-alpha1","r8.2.4-alpha0","r8.0.17-alpha0","r8.0.16-rc1","r8.0.16","r8.2.3-alpha0","r8.2.2-rc0","r8.2.2","r8.0.16-rc0","r8.0.14-rc1","r8.0.14","r8.2.1-rc1","r8.2.1","r8.2.1-rc0","r8.0.14-rc0","r8.2.0","r8.0.13-rc2","r8.0.13","r8.0.13-rc1","r8.0.13-rc0","r8.0.12-rc0","r8.0.12","r8.0.10-rc0","r8.0.10","r8.0.6","r8.0.5-rc2","r8.0.5","r8.0.5-rc1","r8.0.5-rc0","r8.0.4-rc0","r8.0.4","r8.0.3","r8.0.2","r8.0.1-rc0","r8.0.1","r8.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-13057.json","vanir_signatures_modified":"2026-08-07T08:11:17Z","vanir_signatures":[{"source":"https://github.com/mongodb/mongo/commit/10d50f5046de5c76a9d869823219134b3596905a","target":{"file":"src/mongo/db/pipeline/javascript_execution.cpp"},"deprecated":false,"digest":{"line_hashes":["195283451325379709791176466181059330449","11934503373533753673416013101293166641","34761259574797342523983725962110135860","6697845561671035843872382804131271398","190799824288394015190372324041271803151"],"threshold":0.9},"id":"CVE-2026-13057-18a7c7d6","signature_type":"Line","signature_version":"v1"},{"signature_version":"v1","source":"https://github.com/mongodb/mongo/commit/10d50f5046de5c76a9d869823219134b3596905a","target":{"file":"src/mongo/db/pipeline/javascript_execution.cpp","function":"JsExecution::callFunction"},"deprecated":false,"digest":{"length":419,"function_hash":"139145742414386593281199011500928031122"},"id":"CVE-2026-13057-309120cf","signature_type":"Function"},{"target":{"file":"src/mongo/scripting/mozjs/objectwrapper.cpp"},"deprecated":false,"digest":{"line_hashes":["235349502426767986109171624443399362060","332118117976299452680602889698335846937","273414055616980281623380822972213976202","260359270913691981069265618939534968152","92760588891291927255272146911062451930","131421526859279654507125979858138582212"],"threshold":0.9},"id":"CVE-2026-13057-cb3d2fa4","signature_type":"Line","signature_version":"v1","source":"https://github.com/mongodb/mongo/commit/10d50f5046de5c76a9d869823219134b3596905a"},{"deprecated":false,"digest":{"line_hashes":["39839291339635135228351456498984914983","35727036334983502474101853618146564071","152433407413412697966849125832082995516"],"threshold":0.9},"id":"CVE-2026-13057-e13fbe7c","signature_type":"Line","signature_version":"v1","source":"https://github.com/mongodb/mongo/commit/10d50f5046de5c76a9d869823219134b3596905a","target":{"file":"src/mongo/db/pipeline/expression_javascript_test.cpp"}},{"signature_version":"v1","source":"https://github.com/mongodb/mongo/commit/10d50f5046de5c76a9d869823219134b3596905a","target":{"function":"ObjectWrapper::toBSON","file":"src/mongo/scripting/mozjs/objectwrapper.cpp"},"deprecated":false,"digest":{"function_hash":"284447201108016139902358258055612064237","length":1418},"id":"CVE-2026-13057-e30fe2e5","signature_type":"Function"}]}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"}]}