Vulnerability library
Security checkFebruary 16, 2024

Default swagger-ui configuration exposes all files in the module

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

Medium severitynpm@fastify/swagger-ui

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

The default configuration of @fastify/swagger-ui without baseDir set will lead to all files in the module’s directory being exposed via http routes served by the module.

Recommendation

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

  • Affected version(s): >= 2.0.0, < 2.1.0
  • Patched version(s): 2.1.0

References

Could your website be exposed too?

SmartScanner can check your website for Default swagger-ui configuration exposes all files in the module and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated February 16, 2024