Skip to content

Bump @fastify/swagger-ui from 6.1.4 to 6.1.5 - #40

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify/swagger-ui-6.1.5
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify/swagger-ui-6.1.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 25, 2026

Copy link
Copy Markdown
Contributor

Bumps @fastify/swagger-ui from 6.1.4 to 6.1.5.

Release notes

Sourced from @​fastify/swagger-ui's releases.

v6.1.5

Security

This release fixes GHSA-j7qm-jhpc-mj26 (CVE-2026-133273): documentation authentication bypass via the unprotected /static route. Severity: Low (CVSS 3.7, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N), CWE-288.

uiHooks (the onRequest and preHandler hooks used to put the documentation behind a login) were applied to every route the plugin adds except the @fastify/static instance mounted at <routePrefix>/static/. When baseDir is set, that instance serves every file in baseDir, so a file protected at <routePrefix>/<file> was also readable without credentials at <routePrefix>/static/<file>. Access was read-only, and the /json, /yaml and UI page routes stayed protected.

  • Affected versions: >= 2.1.0, < 6.1.5
  • Patched version: 6.1.5

What changed: the uiHooks now run for the /static route too, so the bundled Swagger UI assets are served behind the same hooks as the rest of the documentation. Basic and cookie/session authentication keep working because the browser sends same-origin credentials for those requests. If you use a header-only bearer scheme, or a proxy that injects authentication, you may need to serve the assets from a separate public path or put an authentication-aware same-origin proxy in front.

Workarounds if you cannot upgrade: enforce authentication in a Fastify hook registered before @fastify/swagger-ui so it also runs for the /static route, or do not set baseDir (without it, only the public bundled assets are served under /static/).

Thanks to @​mercury-redstone-research for the report, @​mcollina for the fix and @​UlisesGascon for the review.

What's Changed

New Contributors

Full Changelog: fastify/fastify-swagger-ui@v6.1.4...v6.1.5

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@fastify/swagger-ui](https://github.com/fastify/fastify-swagger-ui) from 6.1.4 to 6.1.5.
- [Release notes](https://github.com/fastify/fastify-swagger-ui/releases)
- [Commits](fastify/fastify-swagger-ui@v6.1.4...v6.1.5)

---
updated-dependencies:
- dependency-name: "@fastify/swagger-ui"
  dependency-version: 6.1.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants