Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    CVE-2026-59926 (GCVE-0-2026-59926)

    Vulnerability from cvelistv5 – Published: 2026-07-08 16:16 – Updated: 2026-07-08 19:40
    VLAI
    Title
    Mistune: XSS via unescaped class option in Admonition directive
    Summary
    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
    Assigner
    Impacted products
    Vendor Product Version
    lepture mistune Affected: < 3.2.1
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-59926",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-07-08T17:48:29.407727Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-07-08T19:40:52.229Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "mistune",
              "vendor": "lepture",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 3.2.1"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1."
            }
          ],
          "metrics": [
            {
              "cvssV4_0": {
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "baseScore": 5.3,
                "baseSeverity": "MEDIUM",
                "privilegesRequired": "NONE",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "PASSIVE",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "LOW",
                "vulnIntegrityImpact": "LOW"
              }
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-79",
                  "description": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-07-08T16:16:15.681Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/lepture/mistune/security/advisories/GHSA-g97x-gvcm-x72h",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/lepture/mistune/security/advisories/GHSA-g97x-gvcm-x72h"
            },
            {
              "name": "https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2"
            },
            {
              "name": "https://github.com/lepture/mistune/releases/tag/v3.2.1",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/lepture/mistune/releases/tag/v3.2.1"
            }
          ],
          "source": {
            "advisory": "GHSA-g97x-gvcm-x72h",
            "discovery": "UNKNOWN"
          },
          "title": "Mistune: XSS via unescaped class option in Admonition directive"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-59926",
        "datePublished": "2026-07-08T16:16:15.681Z",
        "dateReserved": "2026-07-07T18:20:06.126Z",
        "dateUpdated": "2026-07-08T19:40:52.229Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    PYSEC-2026-2214

    Vulnerability from pysec - Published: 2026-07-08 17:17 - Updated: 2026-07-13 05:49
    VLAI
    Details

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.

    Impacted products
    Name purl
    mistune pkg:pypi/mistune

    {
      "affected": [
        {
          "ecosystem_specific": {},
          "package": {
            "ecosystem": "PyPI",
            "name": "mistune",
            "purl": "pkg:pypi/mistune"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "3.3.0"
                }
              ],
              "type": "ECOSYSTEM"
            }
          ],
          "versions": [
            "0.1.0",
            "0.2.0",
            "0.3.0",
            "0.3.1",
            "0.4",
            "0.4.1",
            "0.5",
            "0.5.1",
            "0.6",
            "0.7",
            "0.7.1",
            "0.7.2",
            "0.7.3",
            "0.7.4",
            "0.8",
            "0.8.1",
            "0.8.2",
            "0.8.3",
            "0.8.4",
            "2.0.0",
            "2.0.0a1",
            "2.0.0a2",
            "2.0.0a3",
            "2.0.0a4",
            "2.0.0a5",
            "2.0.0a6",
            "2.0.0rc1",
            "2.0.1",
            "2.0.2",
            "2.0.3",
            "2.0.4",
            "2.0.5",
            "2.1.0",
            "3.0.0",
            "3.0.0a1",
            "3.0.0a2",
            "3.0.0a3",
            "3.0.0rc1",
            "3.0.0rc2",
            "3.0.0rc3",
            "3.0.0rc4",
            "3.0.0rc5",
            "3.0.1",
            "3.0.2",
            "3.1.0",
            "3.1.1",
            "3.1.2",
            "3.1.3",
            "3.1.4",
            "3.2.0",
            "3.2.1"
          ]
        }
      ],
      "aliases": [
        "CVE-2026-59926",
        "GHSA-g97x-gvcm-x72h"
      ],
      "details": "Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.",
      "id": "PYSEC-2026-2214",
      "modified": "2026-07-13T05:49:57.717693Z",
      "published": "2026-07-08T17:17:28.323Z",
      "references": [
        {
          "type": "ADVISORY",
          "url": "https://github.com/lepture/mistune/releases/tag/v3.2.1"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/lepture/mistune/security/advisories/GHSA-g97x-gvcm-x72h"
        },
        {
          "type": "FIX",
          "url": "https://github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2"
        }
      ],
      "severity": [
        {
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
          "type": "CVSS_V3"
        }
      ]
    }