{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "8.2.0"
              },
              {
                "fixed": "8.2.9"
              },
              {
                "introduced": "8.3.0"
              },
              {
                "fixed": "8.3.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "b993867dce63dd366cd93e60f3f425ed716f6497"
            },
            {
              "fixed": "551096db8ad4a951af553de51c5485d5fd91d40d"
            },
            {
              "introduced": "0f29b043a58fdd251ce0a0b32754b8459613c933"
            },
            {
              "fixed": "c531abff36f228c5ff24735ddf31a23536716ab0"
            }
          ],
          "repo": "https://github.com/mongodb/mongo",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mongodb",
    "cwe_ids": [
      "CWE-416"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8336.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "introduced": "8.2"
          },
          {
            "fixed": "8.2.9"
          },
          {
            "introduced": "8.3"
          },
          {
            "fixed": "8.3.2"
          }
        ],
        "source": "AFFECTED_FIELD"
      }
    ]
  },
  "details": "After invoking $_internalJsEmit, which is not intended to be directly accessible, or mapreduce command’s map function in a certain way, an authenticated user can subsequently crash mongod when the server-side JavaScript engine (through $where, $function, mapreduce reduce stage, etc.) is used also in a specific way, resulting in a post-authentication denial-of-service.\n\nThis issue impacts MongoDB Server v8.2 versions prior to 8.2.9 and v8.3 versions prior to 8.3.2.",
  "id": "CVE-2026-8336",
  "modified": "2026-07-08T05:35:56.437957006Z",
  "published": "2026-05-13T00:16:16.568Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/8xxx/CVE-2026-8336.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-8336"
    },
    {
      "type": "REPORT",
      "url": "https://jira.mongodb.org/browse/SERVER-121610"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/AU:N/R:A/V:D/RE:M/U:Red",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Post-authentication use-after-free error in $_internalJsEmit and mapreduce commands"
}