Description
Affected versions of swagger-ui
are vulnerable to cross-site scripting. This vulnerability exists because swagger-ui
automatically executes external Javascript that is loaded in via the url
query string parameter when a Content-Type: application/javascript
header is included.
Recommendation
Update the swagger-ui
package to the latest compatible version. Followings are version details:
- Affected version(s): < 2.2.1
- Patched version(s): 2.2.1
References
Related Issues
- Cross-Site Scripting in swagger-ui (GHSA-7f59-x49p-v8mq) - CVE-2016-1000226
- OpenPGP.js's message signature verification can be spoofed - CVE-2025-47934
- Trix editor subject to XSS vulnerabilities on copy & paste - CVE-2024-53847
- Knwl.js Regular Expression Denial of Service vulnerability - CVE-2020-26306
- Tags:
- npm
- swagger-ui
Anything's wrong? Let us know Last updated on October 10, 2023