{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2817147f5b87ce7186aa604c9ee72499485b8f2f"
                  },
                  {
                    "fixed": "75e735a26859f93c36f10d17a3119f856fe69009"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "2817147f5b87ce7186aa604c9ee72499485b8f2f"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "75e735a26859f93c36f10d17a3119f856fe69009"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "2817147f5b87ce7186aa604c9ee72499485b8f2f"
            },
            {
              "fixed": "75e735a26859f93c36f10d17a3119f856fe69009"
            },
            {
              "fixed": "2817147f5b87ce7186aa604c9ee72499485b8f2f"
            }
          ],
          "repo": "https://github.com/leandrocp/mdex",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "EEF",
    "cwe_ids": [
      "CWE-180"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136129.json",
    "unresolved_ranges": [
      {
        "extracted_events": [
          {
            "range": [
              {
                "introduced": "0.13.2"
              },
              {
                "fixed": "0.15.0"
              }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
          }
        ]
      }
    ]
  },
  "details": "Incorrect Behavior Order: Validate Before Canonicalize vulnerability in leandrocp mdex allows an attacker who controls Markdown input to place javascript: and data: URLs into Quill Delta output via entity-encoded control characters.\n\nMDEx.to_delta/2 blanks link, wikilink and image URLs that its dangerous-URL check flags, but render_url/2 in lib/mdex/delta_converter.ex runs that prefix check on the entity-decoded URL without first normalizing it as a browser would. A destination such as java\u0026#9;script:alert(1) reaches the check with a tab inside the scheme, passes, and is emitted unchanged. Browsers remove tab, carriage return and line feed and trim leading C0 control characters and spaces when parsing a URL, so the value runs as javascript:. Only applications that place the Delta link or image value into an href or src without their own URL check are exposed. Stock Quill re-sanitizes link protocols and is not affected.\n\nThis issue affects mdex: from 0.13.2 before 0.15.0.",
  "id": "CVE-2026-136129",
  "modified": "2026-11-30T20:45:52.770131814Z",
  "published": "2026-11-30T18:44:40.706Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://cna.erlef.org/cves/CVE-2026-136129.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136129.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/leandrocp/mdex"
    },
    {
      "type": "FIX",
      "url": "https://github.com/leandrocp/mdex/commit/2817147f5b87ce7186aa604c9ee72499485b8f2f"
    },
    {
      "type": "FIX",
      "url": "https://github.com/leandrocp/mdex/commit/75e735a26859f93c36f10d17a3119f856fe69009"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-136129"
    },
    {
      "type": "WEB",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-136129"
    },
    {
      "type": "WEB",
      "url": "https://repo.hex.pm"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Dangerous URL filter bypass via control characters in MDEx Quill Delta output (XSS)"
}