pypi package report

Is gradio-pdf safe?

1 known vulnerability, worst severity LOW.

// reach

0 direct dependencies

none carry a known advisory

    1 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
    0.0
    low

    severity band, no base score published

    epss
    not scored

    chance of exploitation in 30 days

    xyz score
    0.0
    low

    CyberXYZ composite out of 10

    fig. 01 — GHSA-4m3g-6r7g-jv4f, the advisory selected below

    // 1 advisories

    GHSA-4m3g-6r7g-jv4f

    LOW
    // summary

    gradio-pdf projects with dependencies on the pdf.js library are vulnerable to CVE-2024-4367, which allows arbitrary JavaScript execution.

    // poc
    • Generate a pdf file with a malicious script in the fontmatrix. (This will run alert(‘XSS’).)

    poc.pdf

    • Run the app. In this PoC, I've used the demo for a simple proof.
    • Upload a PDF file containing the script.
    • Check that the script is running.
    // impact

    Malicious scripts can be injected into the code, and when linked with vulnerabilities such as CSRF, it can cause even greater damage. In particular, It can become a source of further attacks, especially when linked to social engineering.

    // mitigation

    Upgrade the pdf.js to v4.2.67, which removes the vulnerability. (or set the option isEvalSupported to false.)

    // reference
    // cvss v3.1 vector

    CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N

    Attack vector
    Local
    Attack complexity
    Low
    Privileges required
    None
    User interaction
    Required
    Scope
    Changed
    Confidentiality
    Low
    Integrity
    None
    Availability
    None

    Checked 2026-10-23 at 18:54 UTC. The most recent advisory here was published 2024-06-05. Updated continuously from NVD, GHSA, OSV and CNA feeds.

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