Vulnerabilities · 2024 · Smartbear
CVE-2024-22207
Smartbear Swagger Ui vulnerability
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.
Affected products
Swagger Ui. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Smartbear Swagger Ui runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-62jr-84gf-wmg4 · Vendor Advisory
- github.com/fastify/fastify-swagger-ui/commit/13d799a2c5f14d3dd5b15892e03bbcbae63ee6f7 · Patch
- security.netapp.com/advisory/ntap-20240216-0002/
- nvd.nist.gov/vuln/detail/CVE-2024-22207
- cve.org/CVERecord?id=CVE-2024-22207
More vulnerabilities in Smartbear products
CVE-2025-29157CVE-2025-29156CVE-2025-29155CVE-2024-7565CVE-2023-22892CVE-2023-22891CVE-2023-22890CVE-2023-22889All 22
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.