npmWorst: Critical14 advisories

swagger-ui: known vulnerabilities

swagger-ui has 14 reviewed security advisories in the GitHub Advisory Database — 4 critical, 1 high, 9 moderate. The most recent was published 2022-03-11. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the swagger-ui versions running across your servers, containers and images, and ranks what to patch first.

How to fix swagger-ui

Upgrade swagger-ui to a release at or above the fixed version shown for each advisory below. For npm:

npm install swagger-ui@4.1.3 (or run npm audit fix)

SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.

Advisories (14)

Spoofing attack in swagger-ui Moderate 4.3 CWE-20 CWE-918 CWE-922 — Affected: before 4.1.3. Fixed in 4.1.3. Published 2022-03-11. GHSA-cr3q-pqgq-m8c2 · CVE-2018-25031
Server side request forgery in SwaggerUI Moderate CWE-918 — Affected: before 4.1.3. Fixed in 4.1.3. Published 2021-12-09. GHSA-qrmm-w75w-3wpx
Cross-Site Scripting in swagger-ui Moderate CWE-79 — Affected: before 2.2.1. Fixed in 2.2.1. Published 2020-09-11. GHSA-22q9-hqm5-mhmc
Cross-Site Scripting in swagger-ui Moderate 6.5 CWE-79 — Affected: before 3.0.13. Fixed in 3.0.13. Published 2020-09-11. GHSA-388g-jwpg-x6j4
Cross-Site Scripting in swagger-ui Moderate 6.5 CWE-79 — Affected: before 3.20.9. Fixed in 3.20.9. Published 2020-09-11. GHSA-4f9m-pxwh-68hg
Cross-Site Scripting in swagger-ui Moderate CWE-79 — Affected: before 2.2.1. Fixed in 2.2.1. Published 2020-09-11. GHSA-vp93-gcx5-4w52
Cross-Site Scripting in swagger-ui Moderate CWE-79 — Affected: before 2.2.1. Fixed in 2.2.1. Published 2020-09-11. GHSA-w992-2gmj-9xxj
Cross-Site Scripting in swagger-ui Critical CWE-79 — Affected: before 2.2.1. Fixed in 2.2.1. Published 2020-09-01. GHSA-g336-c7wv-8hp3
Improper Neutralization of Input During Web Page Generation in swagger-ui Moderate 6.1 CWE-79 — Affected: before 2.2.1. Fixed in 2.2.1. Published 2019-12-20. GHSA-h8wp-wgcq-qhrf · CVE-2016-1000229
Cross-site scripting in Swagger-UI Critical 9.8 CWE-352 CWE-79 — Affected: before 3.23.11. Fixed in 3.23.11. Published 2019-10-10. GHSA-c427-hjc3-wrfw · CVE-2019-17495
Reverse Tabnapping in swagger-ui Moderate 4.3 CWE-1022 — Affected: before 3.18.0. Fixed in 3.18.0. Published 2019-06-20. GHSA-x9p2-fxq6-2m5f

Find swagger-ui across your fleet

Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA, CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month. Start free.