Skip to content

Commit b0f2873

Browse files
fix(deps): update dependency fastify to v5.3.2 [security] (#90)
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [fastify](https://fastify.dev/) ([source](https://redirect.github.com/fastify/fastify)) | [`5.2.2` -> `5.3.2`](https://renovatebot.com/diffs/npm/fastify/5.2.2/5.3.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/fastify/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/fastify/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/fastify/5.2.2/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/fastify/5.2.2/5.3.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | ### GitHub Vulnerability Alerts #### [CVE-2025-32442](https://redirect.github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc) ### Impact In applications that specify different validation strategies for different content types, it's possible to bypass the validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. Users using the the following pattern are affected: ```js fastify.post('/', { handler(request, reply) { reply.code(200).send(request.body) }, schema: { body: { content: { 'application/json': { schema: { type: 'object', properties: { 'foo': { type: 'string', } }, required: ['foo'] } }, } } } }) ``` User using the following pattern are **not** affected: ```js fastify.post('/', { handler(request, reply) { reply.code(200).send(request.body) }, schema: { body: { type: 'object', properties: { 'foo': { type: 'string', } }, required: ['foo'] } } }) ``` ### Patches This was patched in v5.3.1, but unfortunately it did not cover all problems. This has been fully patched in v5.3.2. ### Workarounds Do not specify multiple content types in the schema. ### References _Are there any links users can visit to find out more?_ https://hackerone.com/reports/3087928 --- ### Fastify vulnerable to invalid content-type parsing, which could lead to validation bypass [CVE-2025-32442](https://nvd.nist.gov/vuln/detail/CVE-2025-32442) / [GHSA-mg2h-6x62-wpwc](https://redirect.github.com/advisories/GHSA-mg2h-6x62-wpwc) <details> <summary>More information</summary> #### Details ##### Impact In applications that specify different validation strategies for different content types, it's possible to bypass the validation by providing a _slightly altered_ content type such as with different casing or altered whitespacing before `;`. Users using the the following pattern are affected: ```js fastify.post('/', { handler(request, reply) { reply.code(200).send(request.body) }, schema: { body: { content: { 'application/json': { schema: { type: 'object', properties: { 'foo': { type: 'string', } }, required: ['foo'] } }, } } } }) ``` User using the following pattern are **not** affected: ```js fastify.post('/', { handler(request, reply) { reply.code(200).send(request.body) }, schema: { body: { type: 'object', properties: { 'foo': { type: 'string', } }, required: ['foo'] } } }) ``` ##### Patches This was patched in v5.3.1, but unfortunately it did not cover all problems. This has been fully patched in v5.3.2. ##### Workarounds Do not specify multiple content types in the schema. ##### References _Are there any links users can visit to find out more?_ https://hackerone.com/reports/3087928 #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N` #### References - [https://github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc](https://redirect.github.com/fastify/fastify/security/advisories/GHSA-mg2h-6x62-wpwc) - [https://nvd.nist.gov/vuln/detail/CVE-2025-32442](https://nvd.nist.gov/vuln/detail/CVE-2025-32442) - [https://github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418](https://redirect.github.com/fastify/fastify/commit/436da4c06dfbbb8c24adee3a64de0c51e4f47418) - [https://github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4](https://redirect.github.com/fastify/fastify/commit/f3d2bcb3963cd570a582e5d39aab01a9ae692fe4) - [https://hackerone.com/reports/3087928](https://hackerone.com/reports/3087928) - [https://github.com/fastify/fastify](https://redirect.github.com/fastify/fastify) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-mg2h-6x62-wpwc) and the [GitHub Advisory Database](https://redirect.github.com/github/advisory-database) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>fastify/fastify (fastify)</summary> ### [`v5.3.2`](https://redirect.github.com/fastify/fastify/compare/v5.3.1...32f7e1eb97b638bad3ff8b80948e5b2c07d1b8b5) [Compare Source](https://redirect.github.com/fastify/fastify/compare/v5.3.1...v5.3.2) ### [`v5.3.1`](https://redirect.github.com/fastify/fastify/compare/v5.3.0...436da4c06dfbbb8c24adee3a64de0c51e4f47418) [Compare Source](https://redirect.github.com/fastify/fastify/compare/v5.3.0...v5.3.1) ### [`v5.3.0`](https://redirect.github.com/fastify/fastify/releases/tag/v5.3.0) [Compare Source](https://redirect.github.com/fastify/fastify/compare/v5.2.2...v5.3.0) #### What's Changed - fix: wrong reply return type by [@&#8203;dangkyokhoang](https://redirect.github.com/dangkyokhoang) in [https://github.com/fastify/fastify/pull/6026](https://redirect.github.com/fastify/fastify/pull/6026) - feat: allow to access decorators by [@&#8203;jean-michelet](https://redirect.github.com/jean-michelet) in [https://github.com/fastify/fastify/pull/5768](https://redirect.github.com/fastify/fastify/pull/5768) - ci: continue-on-error on alternative runtime by [@&#8203;Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/6031](https://redirect.github.com/fastify/fastify/pull/6031) - fix: clear `[kState].readyPromise` for garbage collection by [@&#8203;LiviaMedeiros](https://redirect.github.com/LiviaMedeiros) in [https://github.com/fastify/fastify/pull/6030](https://redirect.github.com/fastify/fastify/pull/6030) - ci: set workflow permissions to read-only by default by [@&#8203;Fdawgs](https://redirect.github.com/Fdawgs) in [https://github.com/fastify/fastify/pull/6035](https://redirect.github.com/fastify/fastify/pull/6035) - chore: Bump the dependencies-major group with 2 updates by [@&#8203;dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/6036](https://redirect.github.com/fastify/fastify/pull/6036) - chore: Bump lycheeverse/lychee-action from 2.3.0 to 2.4.0 by [@&#8203;dependabot](https://redirect.github.com/dependabot) in [https://github.com/fastify/fastify/pull/6037](https://redirect.github.com/fastify/fastify/pull/6037) - chore: remove sponsort by [@&#8203;Eomm](https://redirect.github.com/Eomm) in [https://github.com/fastify/fastify/pull/6040](https://redirect.github.com/fastify/fastify/pull/6040) - test: fix skip in upgrade test by [@&#8203;LiviaMedeiros](https://redirect.github.com/LiviaMedeiros) in [https://github.com/fastify/fastify/pull/6044](https://redirect.github.com/fastify/fastify/pull/6044) - chore: migrate custom-parser.4.test.js to node:test by [@&#8203;Matthew-Mallimo](https://redirect.github.com/Matthew-Mallimo) in [https://github.com/fastify/fastify/pull/6042](https://redirect.github.com/fastify/fastify/pull/6042) - docs: add fastify-lm to Ecosystem.md by [@&#8203;galiprandi](https://redirect.github.com/galiprandi) in [https://github.com/fastify/fastify/pull/6032](https://redirect.github.com/fastify/fastify/pull/6032) - test: skip IPv6 tests if its support is not present by [@&#8203;LiviaMedeiros](https://redirect.github.com/LiviaMedeiros) in [https://github.com/fastify/fastify/pull/6048](https://redirect.github.com/fastify/fastify/pull/6048) #### New Contributors - [@&#8203;dangkyokhoang](https://redirect.github.com/dangkyokhoang) made their first contribution in [https://github.com/fastify/fastify/pull/6026](https://redirect.github.com/fastify/fastify/pull/6026) - [@&#8203;Matthew-Mallimo](https://redirect.github.com/Matthew-Mallimo) made their first contribution in [https://github.com/fastify/fastify/pull/6042](https://redirect.github.com/fastify/fastify/pull/6042) - [@&#8203;galiprandi](https://redirect.github.com/galiprandi) made their first contribution in [https://github.com/fastify/fastify/pull/6032](https://redirect.github.com/fastify/fastify/pull/6032) **Full Changelog**: fastify/fastify@v5.2.2...v5.3.0 </details> --- ### 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 becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/8hobbies/commitrack). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNDguNCIsInVwZGF0ZWRJblZlciI6IjM5LjI0OC40IiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
1 parent 7e26c3a commit b0f2873

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

packages/api-server/package-lock.json

Lines changed: 25 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@8hobbies/utils": "4.2.0",
3434
"@fastify/type-provider-json-schema-to-ts": "5.0.0",
3535
"@prisma/client": "6.5.0",
36-
"fastify": "5.2.2",
36+
"fastify": "5.3.2",
3737
"fastify-plugin": "5.0.1",
3838
"redis": "4.7.0"
3939
}

0 commit comments

Comments
 (0)