{"schemaVersion":3,"id":"CVE-2024-22207","aliases":["GHSA-62jr-84gf-wmg4"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-01-15T15:40:35.252Z","modified":"2025-06-17T14:34:45.374Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","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","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0229,"percentile":0.82969,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.0229},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0229,"percentile":0.82969}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0229,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0229,"percentile":0.82969}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default","description":"The product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1188.html"}],"affected":[{"vendor":"fastify","product":"fastify-swagger-ui","name":"fastify-swagger-ui","label":"fastify-swagger-ui","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.0","eol":null,"hubHref":"/vendor/fastify/fastify-swagger-ui"},{"vendor":"@fastify","product":"swagger-ui","name":"@fastify/swagger-ui","label":"swagger-ui","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/@fastify/swagger-ui","purlType":"npm","versions":[{"text":"≥ 2.0.0, < 2.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.0","eol":null,"hubHref":null},{"vendor":"smartbear","product":"swagger_ui","name":"swagger ui","label":"swagger_ui","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.0, < 2.1.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.1.0","eol":null,"hubHref":"/vendor/smartbear/swagger_ui"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4","label":"github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7","label":"github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0002/","label":"security.netapp.com/advisory/ntap-20240216-0002/","hostname":"security.netapp.com","tags":[]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22207","label":"nvd.nist.gov/vuln/detail/CVE-2024-22207","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/fastify/fastify-swagger-ui","label":"github.com/fastify/fastify-swagger-ui","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://security.netapp.com/advisory/ntap-20240216-0002","label":"security.netapp.com/advisory/ntap-20240216-0002","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-01-15T15:40:35.252Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-06-17T14:34:45.374Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T06:47:06.106Z","stale":false,"partial":false}}