Skip to content

fix(deps): update dependency fastify to v5.8.1 [security]#706

Merged
dskloetc merged 1 commit intomainfrom
renovate/npm-fastify-vulnerability
Mar 6, 2026
Merged

fix(deps): update dependency fastify to v5.8.1 [security]#706
dskloetc merged 1 commit intomainfrom
renovate/npm-fastify-vulnerability

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Mar 6, 2026

This PR contains the following updates:

Package Change Age Confidence
fastify (source) 5.7.45.8.1 age confidence

GitHub Vulnerability Alerts

CVE-2026-3419

Description

Fastify incorrectly accepts malformed Content-Type headers containing trailing characters after the subtype token, in violation of RFC 9110 §8.3.1. For example, a request sent with Content-Type: application/json garbage passes validation and is processed normally, rather than being rejected with 415 Unsupported Media Type.

When regex-based content-type parsers are in use (a documented Fastify feature), the malformed value is matched against registered parsers using the full string including the trailing garbage. This means a request with an invalid content-type may be routed to and processed by a parser it should never have reached.

Impact

An attacker can send requests with RFC-invalid Content-Type headers that bypass validity checks, reach content-type parser matching, and be processed by the server. Requests that should be rejected at the validation stage are instead handled as if the content-type were valid.

Workarounds

Deploy a WAF rule to protect against this

Fix

The fix is available starting with v5.8.1.


Release Notes

fastify/fastify (fastify)

v5.8.1

Compare Source

v5.8.0

Compare Source


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner March 6, 2026 00:39
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

NPM Publishing labels 🏷️

🔵 This PR has the none label set and it will not cause a version bump.

@dskloetc dskloetc added the none label Mar 6, 2026
@dskloetc dskloetc merged commit 52a21e9 into main Mar 6, 2026
17 of 18 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

🚀 Successfully created version bump PR: #707

@renovate renovate bot deleted the renovate/npm-fastify-vulnerability branch March 6, 2026 09:14
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.

1 participant