-
Notifications
You must be signed in to change notification settings - Fork 67
Commit f9d4494
authored
fix(deps): update dependency fastify to v4.10.2 [security] (#1126)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [fastify](https://www.fastify.io/)
([source](https://togithub.com/fastify/fastify)) | [`4.9.2` ->
`4.10.2`](https://renovatebot.com/diffs/npm/fastify/4.9.2/4.10.2) |
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
[](https://docs.renovatebot.com/merge-confidence/)
|
### GitHub Vulnerability Alerts
####
[CVE-2022-41919](https://togithub.com/fastify/fastify/security/advisories/GHSA-3fjj-p79j-c9hh)
### Impact
The attacker can use the incorrect `Content-Type` to bypass the
`Pre-Flight` checking of `fetch`. `fetch()` requests with Content-Type’s
[essence](https://mimesniff.spec.whatwg.org/#mime-type-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](https://fetch.spec.whatwg.org/#simple-header), 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`](https://www.npmjs.com/package/@​fastify/csrf).
### References
Check out the HackerOne report: https://hackerone.com/reports/1763832.
### For more information
[Fastify security
policy](https://togithub.com/fastify/fastify/security/policy)
---
### Release Notes
<details>
<summary>fastify/fastify</summary>
###
[`v4.10.2`](https://togithub.com/fastify/fastify/releases/tag/v4.10.2)
[Compare
Source](https://togithub.com/fastify/fastify/compare/v4.10.1...v4.10.2)
#### 1 parent 91a3d93 commit f9d4494Copy full SHA for f9d4494
File tree
Expand file treeCollapse file tree
1 file changed
+29
-27
lines changedOpen diff view settings
Filter options
Expand file treeCollapse file tree
1 file changed
+29
-27
lines changedOpen diff view settings
Collapse file
+29-27Lines changed: 29 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments