{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-22207","id":"CVE-2024-22207","title":"Default swagger-ui configuration exposes all files in the module","description":"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.","descriptionLong":"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","updated":"2026-10-28T02:31:08.454482921Z","reserved":"2024-01-08T04:59:27.373Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["fastify-swagger-ui"],"affectedProducts":[{"vendor":"fastify","product":"fastify-swagger-ui","defaultStatus":null,"versions":[{"version":"< 2.1.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"@fastify/swagger-ui","purl":"pkg:npm/%40fastify/swagger-ui","ranges":[">=2.0.0 <2.1.0"],"fixed":["2.1.0"],"advisory":"GHSA-62jr-84gf-wmg4"}],"cwes":["CWE-1188"],"aliases":["GHSA-62jr-84gf-wmg4"],"references":[{"url":"https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0002/","tags":["x_transferred","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/22xxx/CVE-2024-22207.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22207","tags":["advisory"]},{"url":"https://github.com/fastify/fastify-swagger-ui","tags":["package"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0002","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0229,"epssPercentile":0.836,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-22207","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22207","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-22207","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-62jr-84gf-wmg4","ok":true,"note":"GHSA-62jr-84gf-wmg4"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-22207","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}