Affected versions of swagger-ui are vulnerable to cross-site scripting via the url query string parameter.
Full advisory text at GitHub advisory.
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.
0 packages depend on it
an advisory here reaches each of them
Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
severity band, no base score published
chance of exploitation in 30 days
CyberXYZ composite out of 10
fig. 01 — GHSA-g336-c7wv-8hp3, the advisory selected below
Affected versions of swagger-ui are vulnerable to cross-site scripting via the url query string parameter.
Full advisory text at GitHub advisory.
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.
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.
4.1.3 or later clears every advisory recorded for swagger-ui (npm). Check the release you pick before installing it.
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.