CVE-2026-133273
Received Received - Intake

Authentication Bypass in @fastify/swagger-ui Static Assets

Vulnerability report for CVE-2026-133273, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-21

Last updated on: 2026-11-21

Assigner: 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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-21
Last Modified
2026-11-21
Generated
2026-11-21
AI Q&A
2026-11-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
fastify swagger_ui From 2.1.0 (inc) to 6.1.4 (inc)
fastify swagger_ui 6.1.5

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-288 The product requires authentication, but the product has an alternate path or channel that does not require authentication.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The vulnerability in @fastify/swagger-ui versions 2.1.0 through 6.1.4 allows unauthenticated access to files in a directory when the baseDir option is enabled. The plugin fails to apply authentication hooks to the static asset route, exposing files that should be protected behind authentication.

Detection Guidance

Check if your system uses @fastify/swagger-ui versions 2.1.0 through 6.1.4 by running: npm list @fastify/swagger-ui. If the version is within this range, the system is potentially vulnerable. Inspect network traffic for unauthorized access to /static routes or files intended to be restricted.

Impact Analysis

An attacker who knows or guesses a file name could read sensitive files without credentials. The impact is limited to read-only access and only affects files in the specified directory. The attack complexity is high, reducing the risk of exploitation.

Compliance Impact

This vulnerability could potentially affect compliance with GDPR and HIPAA by exposing sensitive documentation files that were intended to be restricted behind authentication. Unauthorized access to such files may lead to violations of data protection requirements, especially if the exposed files contain personal or health-related data.

Mitigation Strategies

Upgrade @fastify/swagger-ui to version 6.1.5 or later using: npm update @fastify/swagger-ui. Alternatively, enforce authentication via Fastify hooks or disable the baseDir option to prevent exposure of static files.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-133273. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...