CVE-2026-133273
published low CVSS 3.1 · 3.7@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| @fastify/swagger-ui | — | @fastify/swagger-ui2.1.0 to < 6.1.5 (affected · semver) · 6.1.5 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | openjs |
Description
@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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 3.7 / 10
- Severity
- low
- Provider
- openjs · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| @fastify/swagger-ui | @fastify/swagger-ui | 2.1.0 to < 6.1.5 (affected · semver)6.1.5 (unaffected · semver)Default: unaffected | openjs · cna |
Weaknesses
1- CWE-288 CWE-288: Authentication Bypass Using an Alternate Path or Channel
References
2Provider assertions
2openjs · cna
@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- ed7fe4c51591c93a7133118309366ca293bba5de8d5b735abe99edadd373b694
- Ingested
- 23 Nov 2026, 20:27:27 UTC
- Source record
- Official CVE record