[Snyk] Upgrade: , ws, , , axios, express, fastify, geolib, jsonwebtoken, prisma, socket.io, tsx, zod #69
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade multiple dependencies.
👯♂ The following dependencies are linked and will therefore be updated together.ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
@fastify/cors
from 8.2.1 to 8.5.0 | 5 versions ahead of your current version | 9 months ago
on 2023-12-18
ws
from 8.13.0 to 8.18.0 | 9 versions ahead of your current version | 2 months ago
on 2024-07-03
@googlemaps/google-maps-services-js
from 3.3.28 to 3.4.0 | 15 versions ahead of your current version | 5 months ago
on 2024-04-09
@prisma/client
from 4.12.0 to 4.16.2 | 651 versions ahead of your current version | a year ago
on 2023-06-30
axios
from 1.3.4 to 1.7.4 | 22 versions ahead of your current version | a month ago
on 2024-08-13
express
from 4.18.2 to 4.19.2 | 4 versions ahead of your current version | 6 months ago
on 2024-03-25
fastify
from 4.15.0 to 4.28.1 | 30 versions ahead of your current version | 2 months ago
on 2024-06-29
geolib
from 3.3.3 to 3.3.4 | 1 version ahead of your current version | a year ago
on 2023-06-01
jsonwebtoken
from 9.0.0 to 9.0.2 | 2 versions ahead of your current version | a year ago
on 2023-08-30
prisma
from 4.12.0 to 4.16.2 | 651 versions ahead of your current version | a year ago
on 2023-06-30
socket.io
from 4.6.1 to 4.7.5 | 7 versions ahead of your current version | 6 months ago
on 2024-03-14
tsx
from 3.12.6 to 3.14.0 | 6 versions ahead of your current version | a year ago
on 2023-10-17
zod
from 3.21.4 to 3.23.8 | 93 versions ahead of your current version | 4 months ago
on 2024-05-08
Issues fixed by the recommended upgrade:
SNYK-JS-SEMVER-3247795
SNYK-JS-SOCKETIO-7278048
SNYK-JS-SOCKETIOPARSER-5596892
SNYK-JS-AXIOS-6032459
SNYK-JS-ZOD-5925617
SNYK-JS-AXIOS-6032459
SNYK-JS-AXIOS-6144788
SNYK-JS-AXIOS-7361793
SNYK-JS-ENGINEIO-5496331
SNYK-JS-FOLLOWREDIRECTS-6141137
SNYK-JS-FOLLOWREDIRECTS-6444610
SNYK-JS-AXIOS-6124857
SNYK-JS-AXIOS-6124857
SNYK-JS-EXPRESS-6474509
Release notes
Package name: @fastify/cors
What's Changed
Full Changelog: v8.4.2...v8.5.0
What's Changed
New Contributors
Full Changelog: v8.4.1...v8.4.2
What's Changed
u
unicode flag to regex by @ Fdawgs in #273typeof
undefined check by @ Fdawgs in #275New Contributors
Full Changelog: v8.4.0...v8.4.1
What's Changed
Object.assign()
by @ Fdawgs in #257node:
prefix to bypass require.cache call for builtins by @ Fdawgs in #269New Contributors
Full Changelog: v8.3.0...v8.4.0
What's Changed
cacheControl
to control caching in CDN by @ brettwillis in #252New Contributors
Full Changelog: v8.2.1...v8.3.0
What's Changed
New Contributors
Full Changelog: v8.2.0...v8.2.1
Package name: ws
Features
Blob
(#2229).Bug fixes
A request with a number of headers exceeding the
server.maxHeadersCount
threshold could be used to crash a ws server.
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');
const headers = {};
let count = 0;
for (let i = 0; i < chars.length; i++) {
if (count === 2000) break;
}
headers.Connection = 'Upgrade';
headers.Upgrade = 'websocket';
headers['Sec-WebSocket-Key'] = 'dGhlIHNhbXBsZSBub25jZQ==';
headers['Sec-WebSocket-Version'] = '13';
const request = http.request({
headers: headers,
host: '127.0.0.1',
port: wss.address().port
});
request.end();
});
The vulnerability was reported by Ryan LaPointe in #2230.
In vulnerable versions of ws, the issue can be mitigated in the following ways:
--max-http-header-size=size
and/or themaxHeaderSize
options sothat no more headers than the
server.maxHeadersCount
limit can be sent.server.maxHeadersCount
to0
so that no limit is applied.Features
WebSocket
constructor now accepts thecreateConnection
option (#2219).Other notable changes
allowSynchronousEvents
option has been changed totrue
(#2221).This is a breaking change in a patch release. The assumption is that the option
is not widely used.
Features
autoPong
option (01ba54e).Notable changes
allowMultipleEventsPerMicrotask
option has been renamed toallowSynchronousEvents
(4ed7fe5).This is a breaking change in a patch release that could have been avoided with
an alias, but the renamed option was added only 3 days ago, so hopefully it
hasn't already been widely used.
Features
allowMultipleEventsPerMicrotask
option (93e3552).Bug fixes
swallowed when running tests (7f4e1a7).
Package name: @googlemaps/google-maps-services-js
3.4.0 (2024-04-09)
Features
3.3.42 (2023-12-12)
Build System
Miscellaneous Chores
Tests
3.3.41 (2023-10-10)
Bug Fixes