GHSA-vp93-gcx5-4w52
Cross-Site Scripting in swagger-ui
GHSA-vp93-gcx5-4w52 is a vulnerability with no CVSS score yet in swagger-ui, published September 11, 2020. No source lists public exploit code. Fixed in swagger-ui 2.2.1.
- Severity
- UnratedNo CVSS score yet
- Exploit chance
- UnscoredNo EPSS score yet
- Exploitation
- None knownNot on CISA’s or ENISA’s lists
- Fixed in
2.2.1swagger-ui
Description
Versions of swagger-ui prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize JSON schemas, allowing attackers to execute arbitrary JavaScript using <script> tags in the method descriptions.
Recommendation
Upgrade to version 2.2.1 or later.
Affected packages
| Package | Affected | Fixed |
|---|---|---|
swagger-uinpm | before 2.2.1 | 2.2.1 |
What each source reports
GitHub AdvisoriesNo score
Cross-Site Scripting in swagger-ui
Versions of swagger-ui prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize JSON schemas, allowing attackers to execute arbitrary JavaScript using <script> tags in the method descriptions.
Recommendation
Upgrade to version 2.2.1 or later.
- Record
GHSA-vp93-gcx5-4w52- Weakness
- CWE-79
- Updated
- 2026-11-02
OSVNo score
Cross-Site Scripting in swagger-ui
Versions of swagger-ui prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize JSON schemas, allowing attackers to execute arbitrary JavaScript using <script> tags in the method descriptions.
Recommendation
Upgrade to version 2.2.1 or later.
- Record
GHSA-vp93-gcx5-4w52- Weakness
- CWE-79
- Updated
- 2026-11-02
History
| Recorded | Changed | Sources |
|---|---|---|
| first indexed | GitHub Advisories, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.