Description
Versions of swagger-ui
prior to 3.0.13 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize YAML files imported from URLs or copied-pasted. This may allow attackers to execute arbitrary JavaScript.
Recommendation
Update the swagger-ui
package to the latest compatible version. Followings are version details:
- Affected version(s): < 3.0.13
- Patched version(s): 3.0.13
References
Related Issues
- Cross-Site Scripting in swagger-ui (GHSA-p239-93f7-h6xf) - CVE-2016-5682
- Cross-Site Scripting in swagger-ui (GHSA-w992-2gmj-9xxj) - Vulnerability
- Cross-Site Scripting in swagger-ui (GHSA-22q9-hqm5-mhmc) - Vulnerability
- Cross-Site Scripting in swagger-ui (GHSA-g336-c7wv-8hp3) - Vulnerability
- Tags:
- npm
- swagger-ui
Anything's wrong? Let us know Last updated on January 09, 2023