Description
Affected versions of swagger-ui are vulnerable to cross-site scripting in both the consumes and produces parameters of the swagger JSON document for a given API.
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-mrx7-8hxf-f853) - CVE-2016-1000233
- Vite's `server.fs` settings were not applied to HTML files - CVE-2025-58752
- Spoofing attack in swagger-ui - CVE-2018-25031
- OpenPGP.js's message signature verification can be spoofed - CVE-2025-47934
- Tags:
- npm
- swagger-ui
Anything's wrong? Let us know Last updated on January 09, 2023