CVE-2026-133273
@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.
Fixes and workarounds
Fix
@fastify/swagger-ui (npm): GitHub reports patched versions 6.1.5. Check the advisory for the affected release branch.
Source: GitHub GHSA-j7qm-jhpc-mj26Affected products and versions
| Product | Versions | Authority |
|---|---|---|
| @fastify/swagger-ui @fastify/swagger-ui @fastify/swagger-ui
npm |
≥ 2.1.0; < 6.1.5 (affected, semver) 6.1.5 (unaffected, semver) Other versions: unaffected |
CNA: openjs |
@fastify/swagger-ui@fastify/swagger-ui
npm |
>= 2.1.0, < 6.1.5 (affected, GitHub advisory range) | GitHub GHSA-j7qm-jhpc-mj26 |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 3.7 low |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N | CNA: openjs |
| 3.1 / 3.7 low |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD: ce714d77-add3-4f53-aff5-83d477b104bb |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-j7qm-jhpc-mj26CNA: openjs
- https://cna.openjsf.org/security-advisories.htmlCNA: openjs
- https://cna.openjsf.org/security-advisories.htmlce714d77-add3-4f53-aff5-83d477b104bb
- https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-j7qm-jhpc-mj26ce714d77-add3-4f53-aff5-83d477b104bb
- https://github.com/fastify/fastify-swagger-ui/security/advisories/GHSA-j7qm-jhpc-mj26GitHub Security Advisories · advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.