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

fix(deps): [security] bump ws from 6.2.1 to 6.2.2 #624

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

dependabot-preview[bot]
Copy link
Contributor

@dependabot-preview dependabot-preview bot commented Jun 2, 2021

Bumps ws from 6.2.1 to 6.2.2. This update includes security fixes.

Vulnerabilities fixed

Sourced from The GitHub Security Advisory Database.

ReDoS in Sec-Websocket-Protocol header

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

... (truncated)

Affected versions: >= 5.0.0 < 6.2.2

Sourced from The GitHub Security Advisory Database.

ReDoS in Sec-Websocket-Protocol header

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

... (truncated)

Affected versions: < 6.2.2

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.

Dependabot will not automatically merge this PR because it includes a security patch update to a production dependency.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in the .dependabot/config.yml file in this repo:

  • Update frequency
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added dependencies Pull requests that update a dependency file security Pull requests that address a security vulnerability labels Jun 2, 2021
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/ws-6.2.2 branch 2 times, most recently from 13212fb to 695a350 Compare June 10, 2021 00:15
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/ws-6.2.2 branch 3 times, most recently from 8d093e7 to baa43f7 Compare July 28, 2021 00:34
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2. **This update includes security fixes.**
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
@dependabot-preview dependabot-preview bot force-pushed the dependabot/npm_and_yarn/ws-6.2.2 branch from baa43f7 to 5f48f38 Compare July 28, 2021 00:51
@czosel czosel merged commit 910ec64 into main Jul 28, 2021
@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/ws-6.2.2 branch July 28, 2021 09:23
velrest pushed a commit that referenced this pull request Sep 30, 2021
# [4.1.0](v4.0.1...v4.1.0) (2021-09-30)

### Bug Fixes

* **deps:** [security] bump handlebars from 4.7.6 to 4.7.7 ([#588](#588)) ([d167207](d167207))
* **deps:** [security] bump striptags from 3.1.1 to 3.2.0 ([#637](#637)) ([3632f52](3632f52))
* **deps:** [security] bump trim-newlines from 3.0.0 to 3.0.1 ([#634](#634)) ([10e3974](10e3974))
* **deps:** [security] bump ws from 6.2.1 to 6.2.2 ([#624](#624)) ([910ec64](910ec64))
* call on-update hook correctly ([#641](#641)) ([b8688b6](b8688b6))

### Features

* checkbox groups ([#640](#640)) ([9099ce8](9099ce8))
@velrest
Copy link
Contributor

velrest commented Sep 30, 2021

🎉 This PR is included in version 4.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file released on @main security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants