Skip to content

deps: bump @fastify/swagger-ui from 6.1.1 to 6.1.5 in /source - #105

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

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

Conversation

@dependabot

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

Copy link
Copy Markdown
Contributor

Bumps @fastify/swagger-ui from 6.1.1 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

v6.1.4

What's Changed

New Contributors

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

v6.1.3

What's Changed

Full Changelog: fastify/fastify-swagger-ui@v6.1.2...v6.1.3

v6.1.2

What's Changed

... (truncated)

Commits
  • a748117 Bumped v6.1.5
  • 5e8dba3 Merge commit from fork
  • 49dde29 refactor!: remove the CSP hash directives that were always empty (#301)
  • 8889bf2 Bumped v6.1.4
  • 6c8767f fix: resolve swagger UI URLs with query parameters (#290)
  • 9b33e11 Bumped v6.1.3
  • 72b85d3 fix: bump swagger-ui-dist to 5.34.0 and update topbar selector for custom log...
  • 96261c5 chore: bump fastify/workflows/.github/workflows/reusable-release.yml
  • 1e67864 Bumped v6.1.2
  • ed92262 fix: run prepare in release:build script
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​fastify/swagger-ui since your current version.


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.1 to 6.1.5.
- [Release notes](https://github.com/fastify/fastify-swagger-ui/releases)
- [Commits](fastify/fastify-swagger-ui@v6.1.1...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 @github

dependabot Bot commented on behalf of github Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants