CVE-2024-22207
Default swagger-ui configuration exposes all files in the module
5.3
MEDIUM
CVSS 3.1
EPSS 14.4%
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 ](https://hackerone.com/reports/2312369).
How to fix CVE-2024-22207
To remediate CVE-2024-22207, upgrade the affected package to a fixed version below.
- —upgrade to 2.1.0 or later
Is CVE-2024-22207 being exploited?
Moderate — EPSS is 14.4%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (1)
- >= 2.0.0, < 2.1.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |