CVE-2024-22207 – @fastify/swagger-ui
Package
Manager: npm
Name: @fastify/swagger-ui
Vulnerable Version: >=2.0.0 <2.1.0
Severity
Level: Medium
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
EPSS: 0.12797 pctl0.93766
Details
Default swagger-ui configuration exposes all files in the module ### 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).
Metadata
Created: 2024-01-16T15:24:41Z
Modified: 2024-02-16T15:30:26Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/01/GHSA-62jr-84gf-wmg4/GHSA-62jr-84gf-wmg4.json
CWE IDs: ["CWE-1188"]
Alternative ID: GHSA-62jr-84gf-wmg4
Finding: F164
Auto approve: 1