Skip to content

Cross-Site Scripting in swagger-ui

Moderate severity GitHub Reviewed Published Sep 11, 2020 to the GitHub Advisory Database • Updated Oct 2, 2023

Package

npm swagger-ui (npm)

Affected versions

< 3.20.9

Patched versions

3.20.9

Description

Versions of swagger-ui prior to 3.20.9 are vulnerable to Cross-Site Scripting (XSS). The package fails to sanitize URLs used in the OAuth auth flow, which may allow attackers to execute arbitrary JavaScript.

Recommendation

Upgrade to version 3.20.9 or later.

References

Reviewed Aug 31, 2020
Published to the GitHub Advisory Database Sep 11, 2020
Last updated Oct 2, 2023

Severity

Moderate
6.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Weaknesses

CVE ID

No known CVE

GHSA ID

GHSA-4f9m-pxwh-68hg

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.