Skip to content

chore(deps): update dependency fastify to v4.10.2 [security] - autoclosed#15

Closed
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-fastify-vulnerability
Closed

chore(deps): update dependency fastify to v4.10.2 [security] - autoclosed#15
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-fastify-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Oct 11, 2022

This PR contains the following updates:

Package Change Age Confidence
fastify (source) 4.2.04.10.2 age confidence

GitHub Vulnerability Alerts

CVE-2022-39288

Impact

An attacker can send an invalid Content-Type header that can cause the application to crash, leading to a possible Denial of Service attack. Only the v4.x line is affected.

(This was updated: upon a close inspection, v3.x is not affected after all).

Patches

Yes, update to > v4.8.0.

Workarounds

You can reject the malicious content types before the body parser enters in action.

  const badNames = Object.getOwnPropertyNames({}.__proto__)
  fastify.addHook('onRequest', async (req, reply) => {
    for (const badName of badNames) {
      if (req.headers['content-type'].indexOf(badName) > -1) {
        reply.code(415)
        throw new Error('Content type not supported')
      }
    }
  })

References

See the HackerOne report #​1715536

For more information

Fastify security policy

CVE-2022-41919

Impact

The attacker can use the incorrect Content-Type to bypass the Pre-Flight checking of fetch. fetch() requests with Content-Type’s essence as "application/x-www-form-urlencoded", "multipart/form-data", or "text/plain", could potentially be used to invoke routes that only accepts application/json content type, thus bypassing any CORS protection, and therefore they could lead to a Cross-Site Request Forgery attack.

Patches

For 4.x users, please update to at least 4.10.2
For 3.x users, please update to at least 3.29.4

Workarounds

Implement Cross-Site Request Forgery protection using @fastify/csrf.

References

Check out the HackerOne report: https://hackerone.com/reports/1763832.

For more information

Fastify security policy


Release Notes

fastify/fastify (fastify)

v4.10.2

Compare Source

⚠️ Security Release ⚠️

Full Changelog: fastify/fastify@v4.10.1...v4.10.2

v4.10.1

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.10.0...v4.10.1

v4.10.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.9.2...v4.10.0

v4.9.2

Compare Source

What's Changed

Full Changelog: fastify/fastify@v4.9.1...v4.9.2

v4.9.1

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.9.0...v4.9.1

v4.9.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.8.1...v4.9.0

v4.8.1

Compare Source

⚠️ Security Release ⚠️

This release fixes GHSA-455w-c45v-86rg for the v4.x line.
This is a HIGH vulnerability that can lead to a crash, resulting in a total loss of availability.
The CVE for this vulnerability is CVE-2022-39288.

Full Changelog: fastify/fastify@v4.8.0...v4.8.1

v4.8.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.7.0...v4.8.0

v4.7.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.6.0...v4.7.0

v4.6.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.5.3...v4.6.0

v4.5.3

Compare Source

What's Changed

Full Changelog: fastify/fastify@v4.5.2...v4.5.3

v4.5.2

Compare Source

What's Changed

Full Changelog: fastify/fastify@v4.5.1...v4.5.2

v4.5.1

Compare Source

What's Changed

Full Changelog: fastify/fastify@v4.5.0...v4.5.1

v4.5.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.4.0...v4.5.0

v4.4.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.3.0...v4.4.0

v4.3.0

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.2.1...v4.3.0

v4.2.1

Compare Source

What's Changed

New Contributors

Full Changelog: fastify/fastify@v4.2.0...v4.2.1


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.


  • 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 force-pushed the renovate/npm-fastify-vulnerability branch from 9df1130 to 75080be Compare March 11, 2023 11:22
@renovate renovate Bot changed the title fix(deps): update dependency fastify to v4.8.1 [security] fix(deps): update dependency fastify to v4.10.2 [security] Mar 11, 2023
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 75080be to 2226b80 Compare March 16, 2023 20:04
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from 429e97b to 263e060 Compare June 4, 2023 23:54
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from 0f6dd51 to 08e6671 Compare June 18, 2023 14:16
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 08e6671 to 82a2da6 Compare June 30, 2023 05:17
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 82a2da6 to 1d16fc5 Compare July 7, 2023 23:40
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 1d16fc5 to 8747271 Compare July 17, 2023 20:52
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from efee25d to 4cfebd6 Compare August 2, 2023 17:48
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 4cfebd6 to bf53158 Compare August 9, 2023 20:54
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from cfbc7ed to 88c1339 Compare August 27, 2023 20:40
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from ddb2bef to 7a38976 Compare September 27, 2023 04:59
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from ff77dd8 to f759a87 Compare October 16, 2023 05:39
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from f759a87 to 22a7152 Compare October 24, 2023 05:19
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 22a7152 to f4a7da1 Compare November 7, 2023 05:47
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from f4a7da1 to b16c48d Compare November 17, 2023 02:56
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from b16c48d to 08b99fb Compare December 4, 2023 23:56
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from 881daa5 to 10dab03 Compare February 4, 2024 14:18
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 10dab03 to 5e3bbef Compare February 26, 2024 05:48
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 5e3bbef to 8354407 Compare March 13, 2024 02:39
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 8354407 to 36118ff Compare March 21, 2024 08:53
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 36118ff to b89cc25 Compare April 14, 2024 23:25
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from b89cc25 to d6a7733 Compare April 26, 2024 23:57
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from d6a7733 to a41b08e Compare June 5, 2024 02:46
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from a41b08e to 623d6d5 Compare July 25, 2024 20:54
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 623d6d5 to 1d5903c Compare August 9, 2024 02:58
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 1d5903c to e149d89 Compare August 31, 2024 08:32
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from e149d89 to 5bdbb38 Compare October 10, 2024 08:36
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 5bdbb38 to 5aba70e Compare December 4, 2024 02:49
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 5aba70e to 36155c0 Compare December 16, 2024 02:28
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch 2 times, most recently from bff1fe9 to 255b845 Compare January 31, 2025 07:18
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 255b845 to c6d7666 Compare February 9, 2025 11:06
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from c6d7666 to cd85bee Compare March 4, 2025 23:54
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from cd85bee to 87811cc Compare May 24, 2025 12:01
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 87811cc to ea62f1c Compare August 14, 2025 00:15
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from ea62f1c to 560439e Compare September 1, 2025 11:07
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 560439e to e0f1953 Compare September 26, 2025 16:01
@renovate renovate Bot changed the title fix(deps): update dependency fastify to v4.10.2 [security] chore(deps): update dependency fastify to v4.10.2 [security] Sep 26, 2025
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from e0f1953 to 9fa3c77 Compare October 23, 2025 08:06
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 9fa3c77 to 80aa0ad Compare November 16, 2025 08:02
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 80aa0ad to 407d052 Compare December 31, 2025 11:35
@renovate renovate Bot force-pushed the renovate/npm-fastify-vulnerability branch from 407d052 to 1dc3c9d Compare January 20, 2026 02:41
@renovate renovate Bot changed the title chore(deps): update dependency fastify to v4.10.2 [security] chore(deps): update dependency fastify to v4.10.2 [security] - autoclosed Feb 3, 2026
@renovate renovate Bot closed this Feb 3, 2026
@renovate renovate Bot deleted the renovate/npm-fastify-vulnerability branch February 3, 2026 07:14
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