pypi package report

Is mistune safe?

21 known vulnerabilities, worst severity HIGH.

// reach

1 direct dependencies

none carry a known advisory

    40 packages depend on it

    an advisory here reaches each of them

    Create a free accountfor every dependency path, dependent and what to upgrade
    // ai model usage

    No published models are known to use this package.


    cvss
    8.7
    high

    CVSS v4.0 base score out of 10

    epss
    0.46%
    medium

    chance of exploitation in 30 days, 40th percentile of all CVEs

    xyz score
    4.4
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-h7ww-273w-6cm8, the advisory selected below

    // 21 advisories

    GHSA-h7ww-273w-6cm8

    HIGHGitHub ratingCVE-2026-115355

    The Include directive in src/mistune/directives/include.py does not validate that the resolved file path stays within the source directory, allowing path traversal via ../ sequences to read arbitrary files.

    Additionally, error messages and included file contents are rendered without HTML escaping, leading to XSS even when escape=True.

    Affected functions:

    • Path resolution (lines 27-31)
    • block_error() in html.py (line 140)
    • render_html_include() (line 72)

    The Include plugin must be explicitly enabled via the plugins parameter.

    // cvss v4.0 vector

    CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

    Attack vector
    Network
    Attack complexity
    Low
    Attack requirements
    None
    Privileges required
    None
    User interaction
    None
    Confidentiality (vulnerable system)
    High
    Integrity (vulnerable system)
    None
    Availability (vulnerable system)
    None
    Confidentiality (subsequent systems)
    None
    Integrity (subsequent systems)
    None
    Availability (subsequent systems)
    None

    Checked 2026-11-07 at 23:52 UTC. The most recent advisory here was published 2026-10-23. Updated continuously from NVD, GHSA, OSV and CNA feeds.

    Think a verdict here is wrong? Tell us — we respond within 2 business days.