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 fails to encode output in GET requests. The request is meant to respond with Content-Type application/json which does not trigger the vulnerability but if the web server changes the header to text/html it 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