All reports
Medium

Default swagger-ui configuration exposes all files in the module

Affected versions

Affected versions
>= 2.0.0, < 2.1.0
Fixed version
2.1.0

Exploitation

CVE-2024-22207

Probability of exploitation in the next 30 days: 2.29%

FIRST EPSS · 2026-11-24

Description

Impact

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.

Patches

Update to v2.1.0

Workarounds

Use the baseDir option

References

HackerOne report .

Links

Credits

  • knolleary