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

refactor: Bump ws, parse and parse-server #462

Closed
wants to merge 2 commits into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 11, 2024

Bumps ws to 8.17.1 and updates ancestor dependencies ws, parse and parse-server. These dependencies need to be updated together.

Updates ws from 8.13.0 to 8.17.1

Release notes

Sourced from ws's releases.

8.17.1

Bug fixes

  • Fixed a DoS vulnerability (#2231).

A request with a number of headers exceeding the[server.maxHeadersCount][] threshold could be used to crash a ws server.

const http = require('http');
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 0 }, function () {
const chars = "!#$%&'*+-.0123456789abcdefghijklmnopqrstuvwxyz^_`|~".split('');
const headers = {};
let count = 0;
for (let i = 0; i < chars.length; i++) {
if (count === 2000) break;
for (let j = 0; j &lt; chars.length; j++) {
  const key = chars[i] + chars[j];
  headers[key] = 'x';
if (++count === 2000) break;
}

}
headers.Connection = 'Upgrade';
headers.Upgrade = 'websocket';
headers['Sec-WebSocket-Key'] = 'dGhlIHNhbXBsZSBub25jZQ==';
headers['Sec-WebSocket-Version'] = '13';
const request = http.request({
headers: headers,
host: '127.0.0.1',
port: wss.address().port
});
request.end();
});

The vulnerability was reported by Ryan LaPointe in websockets/ws#2230.

In vulnerable versions of ws, the issue can be mitigated in the following ways:

  1. Reduce the maximum allowed length of the request headers using the [--max-http-header-size=size][] and/or the [maxHeaderSize][] options so that no more headers than the server.maxHeadersCount limit can be sent.

... (truncated)

Commits
  • 3c56601 [dist] 8.17.1
  • e55e510 [security] Fix crash when the Upgrade header cannot be read (#2231)
  • 6a00029 [test] Increase code coverage
  • ddfe4a8 [perf] Reduce the amount of crypto.randomFillSync() calls
  • b73b118 [dist] 8.17.0
  • 29694a5 [test] Use the highWaterMark variable
  • 934c9d6 [ci] Test on node 22
  • 1817bac [ci] Do not test on node 21
  • 96c9b3d [major] Flip the default value of allowSynchronousEvents (#2221)
  • e5f32c7 [fix] Emit at most one event per event loop iteration (#2218)
  • Additional commits viewable in compare view

Updates parse from 4.1.0 to 5.3.0

Release notes

Sourced from parse's releases.

5.3.0

5.3.0 (2024-07-07)

Bug Fixes

  • Parse.Object.get returns array instead of object if key name is number-like (#2201) (5921ba2)

Features

5.3.0-beta.1

5.3.0-beta.1 (2024-07-07)

Bug Fixes

  • Parse.Object.get returns array instead of object if key name is number-like (#2201) (5921ba2)

Features

5.3.0-alpha.2

5.3.0-alpha.2 (2024-07-07)

Bug Fixes

  • Parse.Object.get returns array instead of object if key name is number-like (#2201) (5921ba2)

5.3.0-alpha.1

5.3.0-alpha.1 (2024-07-07)

Features

5.2.0

5.2.0 (2024-06-29)

Bug Fixes

  • LiveQueryClient.resubscribe with Parse Server 7 causes many open connections (#2184) (71b4d17)
  • Parse.Installation not working when installation is deleted on server (#2126) (22360b4)
  • Dot notation on JSON arrays doesn't work on PushStatus offset fields (#2194) (e0eb6f0)
  • Duplicate pending operations on nested fields (#2162) (df6df7c)

... (truncated)

Commits
  • c201977 chore(release): 5.3.0 [skip ci]
  • 81fa44f build: Release (#2212)
  • bc0dd72 chore(release): 5.3.0-beta.1 [skip ci]
  • fd3bfa2 build: Release (#2211)
  • e18d2c5 refactor: Bump @​babel/runtime-corejs3 from 7.24.6 to 7.24.7 (#2203)
  • a7462b8 chore(release): 5.3.0-alpha.2 [skip ci]
  • 5921ba2 fix: Parse.Object.get returns array instead of object if key name is number...
  • 17db8ba chore(release): 5.3.0-alpha.1 [skip ci]
  • c74fd4c feat: Add support for Node 22 (#2209)
  • 32d6df5 refactor: Upgrade semantic-release (#2210)
  • Additional commits viewable in compare view

Updates parse-server from 6.5.0 to 6.5.7

Release notes

Sourced from parse-server's releases.

6.5.7

6.5.7 (2024-06-30)

Bug Fixes

6.5.6

6.5.6 (2024-05-16)

Bug Fixes

  • Facebook Limited Login not working due to incorrect domain in JWT validation (#9120) (0e92f76)

6.5.5

6.5.5 (2024-03-19)

Bug Fixes

6.5.4

6.5.4 (2024-03-16)

Bug Fixes

  • Server crashes when receiving an array of Parse.Pointer in the request body (#9012) (8ff444d)

6.5.3

6.5.3 (2024-03-16)

Bug Fixes

  • Security upgrade follow-redirects from 1.15.5 to 1.15.6 (#9019) (422958e)

6.5.2

6.5.2 (2024-03-02)

Bug Fixes

... (truncated)

Commits
  • 52729fd chore(release): 6.5.7 [skip ci]
  • f332d54 fix: SQL injection when using Parse Server with PostgreSQL; fixes security vu...
  • 3012ff7 refactor: Security upgrade ws from 8.16.0 to 8.17.1 (#9157)
  • 0d5e01c test: Disable OAuth 1 tests with Twitter API (#9162)
  • 09ead54 chore(release): 6.5.6 [skip ci]
  • 0e92f76 fix: Facebook Limited Login not workind due to incorrect domain in JWT valida...
  • acea93c refactor: Upgrade graphql-relay from 0.10.0 to 0.10.1 (#9096)
  • 490898e refactor: Upgrade @​babel/eslint-parser from 7.23.3 to 7.24.1 (#9091)
  • 63db281 refactor: Upgrade winston from 3.11.0 to 3.12.0 (#9054)
  • 72ba762 refactor: Upgrade express from 4.18.2 to 4.18.3 (#9042)
  • Additional commits viewable in compare view

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 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [ws](https://github.com/websockets/ws) to 8.17.1 and updates ancestor dependencies [ws](https://github.com/websockets/ws), [parse](https://github.com/parse-community/Parse-SDK-JS) and [parse-server](https://github.com/parse-community/parse-server). These dependencies need to be updated together.


Updates `ws` from 8.13.0 to 8.17.1
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.13.0...8.17.1)

Updates `parse` from 4.1.0 to 5.3.0
- [Release notes](https://github.com/parse-community/Parse-SDK-JS/releases)
- [Changelog](https://github.com/parse-community/Parse-SDK-JS/blob/alpha/CHANGELOG.md)
- [Commits](parse-community/Parse-SDK-JS@4.1.0...5.3.0)

Updates `parse-server` from 6.5.0 to 6.5.7
- [Release notes](https://github.com/parse-community/parse-server/releases)
- [Changelog](https://github.com/parse-community/parse-server/blob/alpha/CHANGELOG.md)
- [Commits](parse-community/parse-server@6.5.0...6.5.7)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
- dependency-name: parse
  dependency-type: direct:production
- dependency-name: parse-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 11, 2024
@mtrezza mtrezza changed the title Bump ws, parse and parse-server refactor: Bump ws, parse and parse-server Jul 11, 2024
Copy link

Thanks for opening this pull request!

  • ❌ Please link an issue that describes the reason for this pull request, otherwise your pull request will be closed. Make sure to write it as Closes: #123 in the PR description, so I can recognize it.

Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 11, 2024

Looks like these dependencies are updatable in another way, so this is no longer needed.

@dependabot dependabot bot closed this Jul 11, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/multi-e0afe05fbe branch July 11, 2024 10:42
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant