GHSA-62jr-84gf-wmg4

    Dashboard / Vulnerabilities / GHSA-62jr-84gf-wmg4

    GHSA-62jr-84gf-wmg4

    Published: 16 Jan 2024Last Modified: 10 Sept 2026

    Summary: Default swagger-ui configuration exposes all files in the module

    Details: ### Impact 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. ### Patches Update to v2.1.0 ### Workarounds Use the `baseDir` option ### References [HackerOne report ](https://hackerone.com/reports/2312369).

    Affected packages

    Package

    Name: @fastify/swagger-ui

    Purl: pkg:npm/%40fastify/swagger-ui

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 2.0.0
    Fixed -2.1.0

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-62jr-84gf-wmg4 | CVE-DB