[Snyk] Upgrade: amqplib, level, serve-handler, superagent, ws #535
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.
amqplib
⚠️ This is a major version upgrade, and may be a breaking change | 8 months ago
⚠️ This is a major version upgrade, and may be a breaking change | 25 days ago
⚠️ This is a major version upgrade, and may be a breaking change | 2 months ago
from 0.5.5 to 0.10.4 | 12 versions ahead of your current version | 5 months ago
on 2024-04-11
level
from 6.0.1 to 8.0.1 | 4 versions ahead of your current version
on 2024-01-27
serve-handler
from 6.1.2 to 6.1.5 | 3 versions ahead of your current version | 2 years ago
on 2022-11-01
superagent
from 5.2.2 to 10.1.0 | 34 versions ahead of your current version
on 2024-08-24
ws
from 7.2.3 to 8.18.0 | 51 versions ahead of your current version
on 2024-07-03
Issues fixed by the recommended upgrade:
SNYK-JS-WS-7266574
SNYK-JS-QS-3153490
SNYK-JS-SEMVER-3247795
SNYK-JS-URLPARSE-2407770
SNYK-JS-URLPARSE-2412697
SNYK-JS-WS-1296835
SNYK-JS-COOKIEJAR-3149984
SNYK-JS-MINIMATCH-3050818
SNYK-JS-URLPARSE-1078283
SNYK-JS-URLPARSE-1533425
SNYK-JS-URLPARSE-2401205
SNYK-JS-URLPARSE-2407759
npm:debug:20170905
Release notes
Package name: amqplib
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.0
amqplib
still works with NodeJS v0.6 through v16, but future versions will not be tested for compatibility with NodeJS < v10.This is to unlock other improvements that can now be made, like
Promise
objectThis release also includes an improvement to TLS connections for people using an AMQP server behind a load balancer. amqplib will now copy the hostname of the connection URL or object to the server name indication field.
Merge pull request #609 from squaremo/release-0.7.1
Bump version and changelog for v0.7.1
This minor version release extends support to Node.js v15.
Tag for version 0.6.0
Package name: level
Fixed
c501868
) (Hanxx).If you are upgrading: please see
UPGRADING.md
.Changed
classic-level
andbrowser-level
(#215) (ad22b21
) (Vincent Weevers).Added
ad8f924
) (Vincent Weevers)Fixed
7083ec6
) (Vincent Weevers)close()
documentation (#197) (c82fdbc
) (Vincent Weevers)If you are upgrading: please see
UPGRADING.md
.Changed
leveldown
andlevel-packager
(53bd922
) (Vincent Weevers)level-js
from 5.x to 6.x (#194) (1f6c603
) (Alex Potsides)d001b2c
) (Vincent Weevers)files
topackage.json
and remove.npmignore
(329e1f5
) (Vincent Weevers)Added
0b3c11d
) (Vincent Weevers)clear
event (Level/community#79) (52314bf
) (Vincent Weevers)Removed
f8a0047
,31317a6
) (Vincent Weevers)e56c6b1
) (Vincent Weevers)Changed
opencollective-postinstall
to npmfunding
(#173) (@ Richienb)nyc
devDependency from^14.0.0
to^15.0.0
(#169) (@ vweevers)airtap
devDependency from^2.0.1
to^3.0.0
(#171) (@ vweevers)Package name: serve-handler
Patches
npm run prepublish
gets executed: #190Patches
Credits
Huge thanks to @ kachkaev for helping!
Patches
yarn.lock
file: 55962cccleanUrls
config is enabled: #122Patches
Credits
Huge thanks to @ TooTallNate for helping!
Package name: superagent
v10.0.2...v10.1.0
v10.0.1...v10.0.2
v10.0.0...v10.0.1
v9.0.2...v10.0.0
url.parse()
withnew URL()
8ead63fnode:url
methods 7e20cedv9.0.1...v9.0.2
polyfill.io
da9ff20v9.0.0...v9.0.1
v8.1.2...v9.0.0
v8.1.1...v8.1.2
v8.1.0...v8.1.1
req.destroyed = true
on abort 70c464cv8.0.9...v8.1.0
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).
Bug fixes
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: