Vulnerability library
Security checkAugust 26, 2024

Cross-site scripting in Swagger-UI

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmswagger-ui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

A Cascading Style Sheets (CSS) injection vulnerability in Swagger UI before 3.23.11 allows attackers to use the Relative Path Overwrite (RPO) technique to perform CSS-based input field value exfiltration, such as exfiltration of a CSRF token value.

Recommendation

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

  • Affected version(s): < 3.23.11
  • Patched version(s): 3.23.11

References

Could your website be exposed too?

SmartScanner can check your website for Cross-site scripting in Swagger-UI and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated August 26, 2024