Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
3.7
CVE-2026-133273: @fastify/swagger-ui allows unauthenticated access to docs files
CVE-2026-133273 · published 12 days ago
Summary
The Fastify plugin that shows API documentation can expose its static files to anyone when a certain option is turned on. This means a user could view specification files that were meant to be protected without any login. Upgrading the plugin to version 6.1.5 or newer will lock down those files.
What to do
- Update @fastify/swagger-ui @fastify/swagger-ui to version 6.1.5 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| @fastify/swagger-ui | @fastify/swagger-ui | < 6.1.5 |
Original advisory text
@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route
@fastify/swagger-ui is the plugin that serves Swagger UI documentation for Fastify applications. In versions 2.1.0 through 6.1.4, the authentication hooks that applications register to protect the documentation are applied to every route the plugin adds except the bundled static asset instance. When the option that serves bundled UI files from a local directory is enabled, that instance exposes every file in the directory without credentials, so a specification file an operator meant to keep behind the documentation login becomes reachable by an unauthenticated client who knows or guesses its name. Access is read-only and limited to files in that directory. The issue is fixed in @fastify/swagger-ui 6.1.5, which applies the same authentication hooks to the static asset route, and users should upgrade to 6.1.5 or later.
References
- https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-j7qm-jhpc... Vendor Advisory
- https://cna.openjsf.org/security-advisories.html Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/133xxx/CVE-2026-1332... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-133273 Vendor Advisory
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-288Authentication Bypass Using Alternate Path
Timeline
Published21 Nov 2026
Updated2 Dec 2026
First seen21 Nov 2026
Sources
CVE-2026-133273 · NVD
CVE-2026-133273 · MITRE
CVE-2026-133273 · OSV
GHSA-j7qm-jhpc-mj26 · GHSA
Track software like this
Free during beta