{"id":"GHSA-62jr-84gf-wmg4","revision":"52a9054311e34d3c853c4e9675dcf9a2","records":[{"revision":"52a9054311e34d3c853c4e9675dcf9a2","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-62jr-84gf-wmg4","aliases":["CVE-2024-22207"],"title":"Default swagger-ui configuration exposes all files in the module","description":"### Impact\n\nThe 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.\n\n### Patches\n\nUpdate to v2.1.0\n\n### Workarounds\n\nUse  the `baseDir` option\n\n### References\n\n[HackerOne report\n](https://hackerone.com/reports/2312369).","state":0,"publishedAt":"2024-01-16T15:24:41+00:00","modifiedAt":"2026-09-10T03:50:04.7944958+00:00","affected":[{"ecosystem":"npm","name":"@fastify/swagger-ui","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.1.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4","https://nvd.nist.gov/vuln/detail/CVE-2024-22207","https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7","https://github.com/fastify/fastify-swagger-ui","https://security.netapp.com/advisory/ntap-20240216-0002"],"sourceUrl":"https://github.com/advisories/GHSA-62jr-84gf-wmg4","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-62jr-84gf-wmg4","identifiers":["GHSA-62jr-84gf-wmg4","CVE-2024-22207"]},"retained":false,"historicalAffected":[]}],"coverage":[]}