NetSight
mittel5.3

CVE-2024-22207

Default swagger-ui configuration exposes all files in the module

Auswirkung

### 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 ](https://hackerone.com/reports/2312369).

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: geringes Risiko, dass Daten ausgelesen werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
npm@fastify/swagger-ui>= 2.0.0, < 2.1.02.1.0

Betroffene Produkte · Smartbear

ProduktBetroffene Versionen
Swagger Ui
ab 2.0.0 vor 2.1.0

Schwachstellenklasse

Referenzen