Skip to content

🚨 [security] Update @nestjs/platform-fastify 11.1.6 → 11.1.11 (patch)#59

Open
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/pnpm/@nestjs/platform-fastify-11.1.11
Open

🚨 [security] Update @nestjs/platform-fastify 11.1.6 → 11.1.11 (patch)#59
depfu[bot] wants to merge 1 commit intomainfrom
depfu/update/pnpm/@nestjs/platform-fastify-11.1.11

Conversation

@depfu
Copy link
Contributor

@depfu depfu bot commented Dec 30, 2025


Welcome to Depfu 👋

This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.

After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.

Let us know if you have any questions. Thanks so much for giving Depfu a try!



🚨 Your current dependencies have known security vulnerabilities 🚨

This dependency update fixes known security vulnerabilities. Please see the details below and assess their impact carefully. We recommend to merge and deploy this as soon as possible!


Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ @​nestjs/platform-fastify (11.1.6 → 11.1.11) · Repo · Changelog

Security Advisories 🚨

🚨 Nest has a Fastify URL Encoding Middleware Bypass (TOCTOU)

A NestJS application is vulnerable if it meets all of the following criteria:

  1. Platform: Uses @nestjs/platform-fastify.
  2. Security Mechanism: Relies on NestMiddleware (via MiddlewareConsumer) for security checks (authentication, authorization, etc.), or through app.use()
  3. Routing: Applies middleware to specific routes using string paths or controllers (e.g., .forRoutes('admin')).
    Example Vulnerable Config:
// app.module.ts
export class AppModule implements NestModule {
  configure(consumer: MiddlewareConsumer) {
    consumer
      .apply(AuthMiddleware) // Security check
      .forRoutes('admin');   // Vulnerable: Path-based restriction
  }
}

Attack Vector:

  • Target Route: /admin
  • Middleware Path: admin
  • Attack Request: GET /%61dmin
  • Result: Middleware is skipped (no match on %61dmin), but controller for /admin is executed.

Consequences:

  • Authentication Bypass: Unauthenticated users can access protected routes.
  • Authorization Bypass: Restricted administrative endpoints become accessible to lower-privileged users.
  • Input Validation Bypass: Middleware performing sanitization or validation can be skipped.

Patches

Patched in @nestjs/platform-fastify@11.1.11

Resources

Credit goes to Hacktron AI for reporting this issue.

Release Notes

11.1.11

v11.1.11 (2025-12-29)

Bug fixes

  • platform-fastify
  • core
    • #16133 fix(core): add missing catch handler for forward-ref provider resolution (@coti-z)

Dependencies

Committers: 3

11.1.10

v11.1.10 (2025-12-22)

Bug fixes

  • core
    • #16098 fix(core): instantiate nested transient providers in static context (@mag123c)
    • #16005 fix(core): resolve all providers when using resolve() with each option (@malkovitc)
  • microservices
    • #16072 fix(microservices): fix grpc stream method return type (@shash-hq)
  • common

Enhancements

Dependencies

Committers: 11

11.1.9

v11.1.9 (2025-11-14)

Bug fixes

  • core
    • #15865 fix(core): make get() throw for implicitly request-scoped trees (@JoeNutt)

Enhancements

Dependencies

Committers: 4

11.1.8

v11.1.8 (2025-10-27)

Bug fixes

  • core
    • #15815 fix(core): ensure nested transient provider isolation (@mag123c)
  • platform-fastify

Committers: 2

11.1.7

v11.1.7 (2025-10-21)

Bug fixes

  • microservices
  • platform-fastify
    • #15732 fix: correct parameter type in RouteConstraints decorator (@thedv91)
  • core
    • #15571 fix(core): skip lifecycle hooks for non-instantiated transient services (@mag123c)
  • common

Enhancements

  • common, platform-socket.io, websockets
  • common
    • #15705 fix(core): resolve extras in configurable module builder async methods (@mag123c)
  • common, core
    • #15503 feat(common): add force-console option to console logger (@mag123c)
  • core
    • #15588 fix(core): improve dependency resolution error messages (@at7211)
  • microservices
    • #15598 feat(errors): add InvalidTcpDataReceptionException for handling TCP receive errors​ (@ghyghoo8)

Dependencies

Committers: 9

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu label Dec 30, 2025
@depfu depfu bot requested a review from microwavekonijn December 30, 2025 16:05
@changeset-bot
Copy link

changeset-bot bot commented Dec 30, 2025

⚠️ No Changeset found

Latest commit: 5490565

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants