npm package report

Is swagger-ui safe?

swagger-ui (npm) has 14 known vulnerabilities, the worst rated CRITICAL. Upgrade to 4.1.3 or later to clear all of them. No malicious-package signal is recorded.

// reach

37 direct dependencies

11 carry known advisories, worst CRITICAL

0 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

    Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


    cvss
    9.0
    critical

    severity band, no base score published

    epss
    not scored

    chance of exploitation in 30 days

    xyz score
    5.0
    medium

    CyberXYZ composite out of 10

    fig. 01 — GHSA-g336-c7wv-8hp3, the advisory selected below

    // 14 advisories

    GHSA-g336-c7wv-8hp3

    CRITICALGitHub rating

    Affected versions of swagger-ui are vulnerable to cross-site scripting via the url query string parameter.

    Full advisory text at GitHub advisory.

    // questions
    Is swagger-ui safe to install?

    CyberXYZ does not call a package safe in absolute terms. It records 14 known vulnerabilities for swagger-ui (npm), the worst rated CRITICAL, and no malicious-package signal. Whether it is acceptable depends on the version you run.

    Does swagger-ui have known vulnerabilities?

    Yes. CyberXYZ records 14 known vulnerabilities for swagger-ui (npm), the worst rated CRITICAL. These include GHSA-g336-c7wv-8hp3, GHSA-p239-93f7-h6xf, GHSA-7f59-x49p-v8mq, GHSA-c427-hjc3-wrfw, GHSA-mrx7-8hxf-f853.

    Which version of swagger-ui should I use?

    4.1.3 or later clears every advisory recorded for swagger-ui (npm). Check the release you pick before installing it.

    How do I check swagger-ui before installing?

    Search swagger-ui in CyberXYZ Check at https://cyberxyz.io/check?q=swagger-ui. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


    Checked 2026-11-14 at 10:14 UTC. The most recent advisory here was published 2022-05-24. Updated continuously from NVD, GHSA, OSV and CNA feeds.

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