This repository was archived by the owner on Sep 27, 2021. It is now read-only.
[Snyk] Upgrade ws from 7.4.0 to 7.5.0 - #195
Open
snyk-bot wants to merge 1 commit into
Open
Conversation
Snyk has created this PR to upgrade ws from 7.4.0 to 7.5.0. See this package in npm: https://www.npmjs.com/package/ws See this project in Snyk: https://app.snyk.io/org/thetutlage/project/b77ac5cb-fc62-46b5-bc0a-c0d27b032a6f?utm_source=github&utm_medium=upgrade-pr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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 ws from 7.4.0 to 7.5.0.
鈩癸笍 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.
The recommended version fixes:
SNYK-JS-WS-1296835
Why? Has a fix available, CVSS 5.3
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: ws
-
7.5.0 - 2021-06-16
- Some errors now have a
- A close frame is now sent to the remote peer if an error (such as a data
- The close code is now always 1006 if no close frame is received, even if the
-
7.4.6 - 2021-05-25
- Fixed a ReDoS vulnerability (00c425e).
for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
-
7.4.5 - 2021-04-18
- UTF-8 validation is now done even if
- Fixed an edge case where
-
7.4.4 - 2021-03-06
- Fixed a bug that could cause the process to crash when using the
-
7.4.3 - 2021-02-02
- The deflate/inflate stream is now reset instead of reinitialized when context
-
7.4.2 - 2020-12-29
- Silenced a deprecation warning (a2c0d44).
-
7.4.1 - 2020-12-04
-
7.4.0 - 2020-11-08
from ws GitHub release notesFeatures
codeproperty describing the specific type of errorthat has occurred (#1901).
Bug fixes
framing error) occurs (8806aa9).
connection is closed due to an error (8806aa9).
Bug fixes
A specially crafted value of the
Sec-Websocket-Protocolheader could be usedto significantly slow down a ws server.
const value = 'b' + ' '.repeat(length) + 'x';
const start = process.hrtime.bigint();
value.trim().split(/ , /);
const end = process.hrtime.bigint();
console.log('length = %d, time = %f ns', length, end - start);
}
The vulnerability was responsibly disclosed along with a fix in private by
Robert McLaughlin from University of California, Santa Barbara.
In vulnerable versions of ws, the issue can be mitigated by reducing the maximum
allowed length of the request headers using the
--max-http-header-size=sizeand/or the
maxHeaderSizeoptions.Bug fixes
utf-8-validateis not installed(23ba6b2).
websocket.close()andwebsocket.terminate()didnot close the connection (67e25ff).
Bug fixes
permessage-deflate extension (9277437).
Bug fixes
takeover is disabled (#1840).
Bug fixes
Commit messages
Package name: ws
Compare
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:
馃 View latest project report
馃洜 Adjust upgrade PR settings
馃敃 Ignore this dependency or unsubscribe from future upgrade PRs