{"id":"CVE-2024-22207","aliases":["GHSA-62jr-84gf-wmg4"],"url":"https://o3.security/vulnerability/CVE-2024-22207","summary":"Default swagger-ui configuration exposes all files in the module","details":"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.","published":"2024-01-15T15:40:35.252Z","modified":"2026-08-12T03:51:15.677379331Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"@fastify/swagger-ui","fixedVersion":"2.1.0"}],"fix":{"url":"https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7","label":"fastify/fastify-swagger-ui@13d799a"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22207.json"},{"type":"ADVISORY","url":"https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22207"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240216-0002/"},{"type":"FIX","url":"https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:15.677379331Z"}}