{
  "affected": [
    {
      "ranges": [
        {
          "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"
          },
          "events": [
            {
              "introduced": "b41cda4fe697dce6fd9b83b3805362ccc02fbeb3"
            },
            {
              "fixed": "dc5344b376fdfab0fe5b2982f125c056ab0abcd8"
            },
            {
              "introduced": "b993867dce63dd366cd93e60f3f425ed716f6497"
            },
            {
              "fixed": "10d50f5046de5c76a9d869823219134b3596905a"
            },
            {
              "introduced": "0f29b043a58fdd251ce0a0b32754b8459613c933"
            },
            {
              "fixed": "527067edda13efcac3d257b3cdb1c510c57b3c6e"
            }
          ],
          "repo": "https://github.com/mongodb/mongo",
          "type": "GIT"
        }
      ]
    }
  ],
  "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"
      }
    ]
  },
  "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.",
  "id": "CVE-2026-13057",
  "modified": "2026-08-07T03:30:16.394814637Z",
  "published": "2026-07-22T19:22:05.646Z",
  "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"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Authorization Bypass via Client-Supplied $search.mergingPipeline Leaks Unauthorized Collection Data Through $$SEARCH_META"
}