{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-54888",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-54888",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-06-29T19:10:38.151Z",
    "updatedAt": "2026-06-30T04:37:59.369Z",
    "importedAt": "2026-10-24T01:58:20.586Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "Uncontrolled recursion over deeply nested Markdown crashes the BEAM in mdex",
      "summary": "Uncontrolled Recursion vulnerability in leandrocp mdex allows denial of service via deeply nested Markdown input.\n\nmdex converts between an Elixir %MDEx.Document{} struct and Comrak's internal AST using two mutually recursive Rust functions, ex_document_to_comrak_ast and comrak_ast_to_ex_document, in the NIF source file document.rs. Neither function enforces a maximum nesting depth, so the recursion depth is bounded only by the structure of the input. An attacker who can get a Markdown document rendered (for example through MDEx.parse_document!/1 or MDEx.to_html/1) can supply a document with thousands of nested block quotes, which drives unbounded recursion across the NIF boundary and exhausts the native C stack.\n\nBecause the resulting stack overflow is an uncatchable SIGSEGV raised inside a NIF, it cannot be contained by the Erlang runtime. It terminates the operating system process running the BEAM, killing every Elixir and Erlang process on the node, not just the caller that triggered the render. No authentication or special privileges are required.\n\nThe vulnerable conversion code was extracted from mdex into the separate mdex_native package starting in mdex 0.12.3. This issue affects mdex from 0.3.0 before 0.12.3 and mdex_native from 0.1.0 before 0.2.3.",
      "affected": [
        {
          "vendor": "leandrocp",
          "product": "mdex",
          "packageName": "mdex",
          "collectionURL": "https://repo.hex.pm",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.3.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "0.12.3"
            }
          ]
        },
        {
          "vendor": "leandrocp",
          "product": "mdex",
          "packageName": "leandrocp/mdex",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "d0bc7d55177727c61d188ef465178ab3b81f4f2c",
              "status": "affected",
              "versionType": "git",
              "lessThan": "6ed94d905f97af188323f042698ae841c02293b4"
            }
          ]
        },
        {
          "vendor": "leandrocp",
          "product": "mdex_native",
          "packageName": "mdex_native",
          "collectionURL": "https://repo.hex.pm",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "0.1.0",
              "status": "affected",
              "versionType": "semver",
              "lessThan": "0.2.3"
            }
          ]
        },
        {
          "vendor": "leandrocp",
          "product": "mdex_native",
          "packageName": "leandrocp/mdex_native",
          "collectionURL": "https://github.com",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "956528c5e31746253347029e810a969ab916fd27",
              "status": "affected",
              "versionType": "git",
              "lessThan": "947696c47bc22bea5dffc0f78c946fa6b70ce183"
            }
          ]
        }
      ]
    }
  }
}