# CVE-2026-130811: @fastify/static vulnerable to information disclosure of denied dotfiles via directory listing

- Severity: Medium 5.3 (CVSS:3.1, scored by openjs) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-11-19T17:55:20.799Z
- Modified: 2026-11-23T16:17:32.597Z
- Weaknesses: CWE-548
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: openjs

## Description

@fastify/static is the Fastify plugin for serving static files. In versions up to and including 10.1.11, when it is configured to deny or ignore dotfiles together with directory listing enabled, a request for a denied dot-directory returns its directory listing instead of being refused. The underlying send step answers with a forbidden response, but the listing fallback misreads that response on a path ending in a slash as a directory without an index file and serves the listing anyway. An unauthenticated client can enumerate the names of files and subdirectories, recursively, inside dot-directories the operator explicitly denied, such as version control, backup, and key file names. File contents remain protected and only names are disclosed. The issue is fixed in @fastify/static 10.1.12, and users should upgrade to 10.1.12 or later. As a workaround, disable directory listing or do not serve a root that contains dot-directories.

(As written by CVE List.)

## Affected

- @fastify/static @fastify/static: before 10.1.12 (not affected: 10.1.12)

## References

- <https://github.com/fastify/fastify-static/security/advisories/GHSA-7533-p376-8gg5>
- <https://cna.openjsf.org/security-advisories.html>

## Sources

- CVE List: [CVE-2026-130811](https://www.cve.org/CVERecord?id=CVE-2026-130811), CVE Terms of Use, modified 2026-11-19
- NVD: [CVE-2026-130811](https://nvd.nist.gov/vuln/detail/CVE-2026-130811), Public domain, modified 2026-11-23

---

Page: https://cve.day/CVE-2026-130811 · Whole record: https://cve.day/CVE-2026-130811.json · Rebuilt by cve.day 2026-11-25T22:59:52.168Z
