Advisory

GHSA-62jr-84gf-wmg4

Also known as: CVE-2024-22207

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).

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-01-16 15:24 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

@fastify/swagger-ui

npm · All systems

Affected

  • introduced 2.0.0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences