Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 31, 2021

Mend Renovate

This PR contains the following updates:

Package Change
ws 7.4.0 -> 7.4.6

GitHub Vulnerability Alerts

CVE-2021-32640

Impact

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

Proof of concept

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);
}

Patches

The vulnerability was fixed in ws@7.4.6 (websockets/ws@00c425e) and backported to ws@6.2.2 (websockets/ws@78c676d) and ws@5.2.3 (websockets/ws@76d47c1).

Workarounds

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.

Credits

The vulnerability was responsibly disclosed along with a fix in private by Robert McLaughlin from University of California, Santa Barbara.


Configuration

📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 66d0018 to bb92938 Compare May 31, 2021 13:15
@renovate renovate bot changed the title chore(deps): update dependency ws to 7.4.6 [security] chore(deps): update dependency ws to 7.4.6 [security] - autoclosed Jun 1, 2021
@renovate renovate bot closed this Jun 1, 2021
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch June 1, 2021 21:11
@renovate renovate bot changed the title chore(deps): update dependency ws to 7.4.6 [security] - autoclosed chore(deps): update dependency ws to 7.4.6 [security] Jun 5, 2021
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch June 5, 2021 07:51
@renovate renovate bot reopened this Jun 5, 2021
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from ababc64 to 1bdb2c1 Compare June 7, 2021 09:54
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from a6b8221 to b81519a Compare June 21, 2021 08:42
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 9b6bda2 to 181bbe3 Compare June 28, 2021 08:34
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from 017195d to fd5859a Compare July 5, 2021 10:03
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from a8fb7b8 to 7c12be4 Compare July 19, 2021 08:13
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 70b630c to 022bbd3 Compare July 26, 2021 08:56
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from f9ecfc9 to 0f5c865 Compare August 2, 2021 09:50
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 4 times, most recently from fbc2b8c to 900b54c Compare August 16, 2021 10:55
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from d131d98 to 84d53c6 Compare August 23, 2021 10:49
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 8117622 to 3ad57ff Compare August 30, 2021 11:53
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from 2da5698 to 2a2a5f5 Compare September 13, 2021 08:06
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from c5a8bab to cdf6e99 Compare September 20, 2021 10:29
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 081b88b to 3a1b250 Compare September 27, 2021 10:31
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from a4224e3 to 741c949 Compare October 11, 2021 09:44
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 741c949 to e53267d Compare October 25, 2021 11:01
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from e53267d to cabbe0e Compare November 22, 2021 10:32
@renovate renovate bot changed the title chore(deps): update dependency ws to 7.4.6 [security] chore(deps): update dependency ws to 7.4.6 [security] - abandoned Mar 24, 2023
@renovate
Copy link
Contributor Author

renovate bot commented Mar 24, 2023

Autoclosing Skipped

This PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants