Vulnerability library
Security checkSeptember 02, 2025

Spoofing attack in swagger-ui

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

Medium severitynpmswagger-ui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Swagger UI before 4.1.3 could allow a remote attacker to conduct spoofing attacks. By persuading a victim to open a crafted URL, an attacker could exploit this vulnerability to display remote OpenAPI definitions.

Recommendation

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

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

References

Could your website be exposed too?

SmartScanner can check your website for Spoofing attack in swagger-ui and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 02, 2025