Vulnerabilities/

Cross-Site Scripting in swagger-ui (GHSA-vp93-gcx5-4w52)

Severity:
Medium

Description

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

Update the swagger-ui package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
swagger-ui
Anything's wrong? Let us know Last updated on January 09, 2023

This issue is available in SmartScanner Professional

See Pricing