Advisory

GHSA-vp93-gcx5-4w52

Also known as: None

Summary

Cross-Site Scripting in swagger-ui

Details

Versions of swagger-ui prior to 2.2.1 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize JSON schemas, allowing attackers to execute arbitrary JavaScript using <script> tags in the method descriptions.

Recommendation

Upgrade to version 2.2.1 or later.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2020-09-11 21:21 UTC
Modified
2021-09-28 17:00 UTC

Affected packages and fixes

swagger-ui

npm · All systems

Affected

  • introduced 0, fixed 2.2.1 (semver)

Fixed versions

2.2.1

Fix

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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences