swagger-ui
Affected
- introduced
0, fixed2.2.1(semver)
Fixed versions
2.2.1
Fix
- Fixed version
2.2.1npm install [email protected]
Advisory
Also known as: None
Cross-Site Scripting in swagger-ui
Versions of swagger-ui prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package allows HTML code in the swagger.apiInfo.description value without proper sanitization, which may allow attackers to execute arbitrary JavaScript.
Recommendation
Upgrade to version 2.2.1 or later.
Medium Basis: The source's own band: MODERATE
0, fixed 2.2.1 (semver)2.2.1
2.2.1npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0