CVE-2024-22207CWE-1188

Default swagger-ui configuration exposes all files in the module

Medium · published January 15, 2024

CVSS v3.1
5.3
EPSS
2%
Percentile
83.1
In the wild
Unconfirmed
What it is

fastify-swagger-ui is a Fastify plugin for serving Swagger UI. Prior to 2.1.0, 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. The vulnerability is fixed in v2.1.0. Setting the `baseDir` option can also work around this vulnerability.

The record
Technical detail
CVSS v3.1
5.3 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.02290 · 83.1th percentile
Weakness
CWE-1188 · Initialization of a Resource with an Insecure Default
Published
2024-01-15T15:40Z
EPSS history
Timeline
  • 15 JAN 15:40Z
    Default swagger-ui configuration exposes all files in the module
    cvelistv5