cvelo
P4 · InfoCVSS 3.7EPSS 0.5%

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

  • CVE-2026-133273
  • EUVD-2026-132187

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.

Text from the CVE.org record.

Recommendation

  • @fastify/swagger-ui

    • If you run a version from 2.1.0 to before 6.1.5update to 6.1.5 or laterMajor version change: expect breaking changes

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • @fastify/swagger-ui

    Affected versionsFixed in
    from 2.1.0 to before 6.1.56.1.5

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.