Security mailing lists by PureSourceCode

CVE-2024-22207

MEDIUM 5.3CVSS 3.1

Default swagger-ui configuration exposes all files in the module

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
15 Jan 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-1188
Also known as
GHSA-62jr-84gf-wmg4
Sources
NVDJSONOSV GHSA-62jr-84gf-wmg4JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD smartbear swagger_ui
cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:node.js:*:*
>= 2.0.0, < 2.1.0 2.1.0
OSV npm @fastify/swagger-ui >= 2.0.0, < 2.1.0 2.1.0

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 15 Jan 2024)
  • 25 Nov 2026 20:10 UTC · OSV: first stored (published 16 Jan 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.