Skip to content
This repository has been 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
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

snyk-bot
Copy link
Contributor

@snyk-bot snyk-bot commented Jul 8, 2021

Snyk has created this PR to upgrade ws from 7.4.0 to 7.5.0.

merge advice
ℹ️ 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 is 7 versions ahead of your current version.
  • The recommended version was released 22 days ago, on 2021-06-16.

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Regular Expression Denial of Service (ReDoS)
SNYK-JS-WS-1296835
479/1000
Why? Has a fix available, CVSS 5.3
No Known Exploit

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: ws
  • 7.5.0 - 2021-06-16

    Features

    • Some errors now have a code property describing the specific type of error
      that has occurred (#1901).

    Bug fixes

    • A close frame is now sent to the remote peer if an error (such as a data
      framing error) occurs (8806aa9).
    • The close code is now always 1006 if no close frame is received, even if the
      connection is closed due to an error (8806aa9).
  • 7.4.6 - 2021-05-25

    Bug fixes

    • Fixed a ReDoS vulnerability (00c425e).

    A specially crafted value of the Sec-Websocket-Protocol header could be used
    to significantly slow down a ws server.

    for (const length of [1000, 2000, 4000, 8000, 16000, 32000]) {
    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=size
    and/or the maxHeaderSize options.

  • 7.4.5 - 2021-04-18

    Bug fixes

    • UTF-8 validation is now done even if utf-8-validate is not installed
      (23ba6b2).
    • Fixed an edge case where websocket.close() and websocket.terminate() did
      not close the connection (67e25ff).
  • 7.4.4 - 2021-03-06

    Bug fixes

    • Fixed a bug that could cause the process to crash when using the
      permessage-deflate extension (9277437).
  • 7.4.3 - 2021-02-02

    Bug fixes

    • The deflate/inflate stream is now reset instead of reinitialized when context
      takeover is disabled (#1840).
  • 7.4.2 - 2020-12-29

    Bug fixes

    • Silenced a deprecation warning (a2c0d44).
  • 7.4.1 - 2020-12-04
  • 7.4.0 - 2020-11-08
from ws GitHub release notes
Commit messages
Package name: ws
  • e3f0c17 [dist] 7.5.0
  • 1d3f4cb [doc] Fix anchor tags for error codes
  • 6eea0d4 [doc] Fix typo
  • bb5d44b [doc] Sort error codes alphabetically
  • c6e3080 [minor] Attach error codes to all receiver errors (#1901)
  • 074e6a8 [fix] Don't call `ws.terminate()` unconditionally in `duplex._destroy()`
  • 8806aa9 [fix] Close the connection cleanly when an error occurs
  • 05b8ccd [doc] Fix broken link (#1897)
  • 03a7078 [doc] Remove unsafe regex from code snippet
  • 7ee3115 [doc] Add logo to coverage badge
  • edff6bb [test] Fix nit
  • 262e45a [test] Rename certificates and private keys files
  • d18c677 [security] Update link to point to published security advisories
  • 2f2b3e8 [test] Update certificates and private keys
  • c05d51f [security] Add ReDoS vulnerability to SECURITY.md
  • f5297f7 [dist] 7.4.6
  • 00c425e [security] Fix ReDoS vulnerability
  • 990306d [lint] Fix prettier error
  • 32e3a84 [security] Remove reference to Node Security Project
  • 8c914d1 [minor] Fix nits
  • fc7e27d [ci] Test on node 16
  • 587c201 [ci] Do not test on node 15
  • f672710 [dist] 7.4.5
  • 67e25ff [fix] Fix case where `abortHandshake()` does not close the connection

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant