Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency ws to 6.2.2 [SECURITY] - autoclosed #249

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 5, 2022

Mend Renovate

This PR contains the following updates:

Package Change
ws 6.2.1 -> 6.2.2

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 is behind base branch, 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 added the renovate label Feb 5, 2022
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from e7dd212 to 5901242 Compare February 12, 2022 04:06
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 5901242 to 53168a1 Compare February 19, 2022 02:30
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 3 times, most recently from b86d548 to f4e2a18 Compare March 5, 2022 01:51
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 5276fce to 23464ab Compare March 19, 2022 01:44
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 2290c6d to 7bf1e33 Compare April 9, 2022 04:07
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 7bf1e33 to 2517529 Compare April 23, 2022 03:24
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 2517529 to 3afda91 Compare April 30, 2022 04:49
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 3afda91 to 0b65ca3 Compare May 14, 2022 05:10
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 2b9519b to 4157c68 Compare May 28, 2022 04:32
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 4157c68 to 019389c Compare June 18, 2022 03:39
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 019389c to d0cedce Compare June 25, 2022 03:47
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch 2 times, most recently from 7e8c050 to e71de91 Compare July 9, 2022 04:17
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from e71de91 to 2c1b0d1 Compare July 23, 2022 03:01
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 2c1b0d1 to 31cd789 Compare August 6, 2022 02:57
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] Update dependency ws to 6.2.2 [SECURITY] - autoclosed Aug 18, 2022
@renovate renovate bot closed this Aug 18, 2022
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch August 18, 2022 02:17
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch August 18, 2022 05:24
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] - autoclosed Update dependency ws to 6.2.2 [SECURITY] Aug 18, 2022
@renovate renovate bot reopened this Aug 18, 2022
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 31cd789 to b202b3c Compare August 27, 2022 05:56
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from b202b3c to 80b7cb3 Compare September 3, 2022 17:24
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch March 31, 2023 04:01
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] - autoclosed Update dependency ws to 6.2.2 [SECURITY] Mar 31, 2023
@renovate renovate bot reopened this Mar 31, 2023
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch March 31, 2023 09:30
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] Update dependency ws to 6.2.2 [SECURITY] - autoclosed Mar 31, 2023
@renovate renovate bot closed this Mar 31, 2023
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch March 31, 2023 10:21
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] - autoclosed Update dependency ws to 6.2.2 [SECURITY] Mar 31, 2023
@renovate renovate bot reopened this Mar 31, 2023
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch March 31, 2023 23:39
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 33375e1 to e5d6f5c Compare April 1, 2023 09:42
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] Update dependency ws to 6.2.2 [SECURITY] - autoclosed Apr 3, 2023
@renovate renovate bot closed this Apr 3, 2023
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch April 3, 2023 10:47
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] - autoclosed Update dependency ws to 6.2.2 [SECURITY] Apr 3, 2023
@renovate renovate bot reopened this Apr 3, 2023
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch April 3, 2023 19:54
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] Update dependency ws to 6.2.2 [SECURITY] - autoclosed Apr 17, 2023
@renovate renovate bot closed this Apr 17, 2023
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch April 17, 2023 13:16
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] - autoclosed Update dependency ws to 6.2.2 [SECURITY] Apr 18, 2023
@renovate renovate bot reopened this Apr 18, 2023
@renovate renovate bot restored the renovate/npm-ws-vulnerability branch April 18, 2023 11:17
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from e5d6f5c to 272efab Compare April 29, 2023 04:06
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 272efab to 048da4e Compare May 6, 2023 05:45
@renovate renovate bot force-pushed the renovate/npm-ws-vulnerability branch from 048da4e to 280f83e Compare May 27, 2023 04:33
@renovate renovate bot changed the title Update dependency ws to 6.2.2 [SECURITY] Update dependency ws to 6.2.2 [SECURITY] - autoclosed May 28, 2023
@renovate renovate bot closed this May 28, 2023
@renovate renovate bot deleted the renovate/npm-ws-vulnerability branch May 28, 2023 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants