Public vulnerability disclosure

CVE-2026-133273

@fastify/swagger-ui vulnerable to documentation authentication bypass via the unprotected /static route

publishedCWE-288

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

Technical severity3.7 lowCVSS 3.1 · CNA: openjs
Published2026-11-21Source updated 2026-11-23
Collected2026-11-234 attributed sources

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-mj26

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
@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

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 3.7
low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NCNA: openjs
3.1 / 3.7
low
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NNVD: ce714d77-add3-4f53-aff5-83d477b104bb

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

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/cves
https://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.

Agent access JSON · OpenAPI · CVE API guide