Skip to content

fix(deps): update dependency socket.io to v2.5.1#67

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/socket.io-packages
Open

fix(deps): update dependency socket.io to v2.5.1#67
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/socket.io-packages

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Nov 9, 2020

This PR contains the following updates:

Package Change Age Confidence
socket.io (source) 2.3.02.5.1 age confidence

Release Notes

socketio/socket.io (socket.io)

v2.5.1

Compare Source

Bug Fixes
  • add a noop handler for the error event (d30630b)
Links:

v2.5.0

Compare Source

⚠️ WARNING ⚠️

The default value of the maxHttpBufferSize option has been decreased from 100 MB to 1 MB, in order to prevent attacks by denial of service.

Security advisory: GHSA-j4f2-536g-r55m

Bug Fixes
  • fix race condition in dynamic namespaces (05e1278)
  • ignore packet received after disconnection (22d4bdf)
  • only set 'connected' to true after middleware execution (226cc16)
  • prevent the socket from joining a room after disconnection (f223178)
Links:

v2.4.1

Compare Source

This release reverts the breaking change introduced in 2.4.0 (f78a575).

If you are using Socket.IO v2, you should explicitly allow/disallow cross-origin requests:

  • without CORS (server and client are served from the same domain):
const io = require("socket.io")(httpServer, {
  allowRequest: (req, callback) => {
    callback(null, req.headers.origin === undefined); // cross-origin requests will not be allowed
  }
});
  • with CORS (server and client are served from distinct domains):
io.origins(["http://localhost:3000"]); // for local development
io.origins(["https://example.com"]);

In any case, please consider upgrading to Socket.IO v3, where this security issue is now fixed (CORS is disabled by default).

Reverts
  • fix(security): do not allow all origins by default (a169050)
Links:

v2.4.0

Compare Source

Related blog post: https://socket.io/blog/socket-io-2-4-0/

Features (from Engine.IO)
  • add support for all cookie options (19cc582)
  • disable perMessageDeflate by default (5ad2736)
Bug Fixes
  • security: do not allow all origins by default (f78a575)
  • properly overwrite the query sent in the handshake (d33a619)

⚠️ BREAKING CHANGE ⚠️

Previously, CORS was enabled by default, which meant that a Socket.IO server sent the necessary CORS headers (Access-Control-Allow-xxx) to any domain. This will not be the case anymore, and you now have to explicitly enable it.

Please note that you are not impacted if:

  • you are using Socket.IO v2 and the origins option to restrict the list of allowed domains
  • you are using Socket.IO v3 (disabled by default)

This commit also removes the support for '*' matchers and protocol-less URL:

io.origins('https://example.com:443'); => io.origins(['https://example.com']);
io.origins('localhost:3000');          => io.origins(['http://localhost:3000']);
io.origins('http://localhost:*');      => io.origins(['http://localhost:3000']);
io.origins('*:3000');                  => io.origins(['http://localhost:3000']);

To restore the previous behavior (please use with caution):

io.origins((_, callback) => {
  callback(null, true);
});

See also:

Thanks a lot to @​ni8walk3r for the security report.

Links:

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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 was generated by Mend Renovate. View the repository job log.

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 9, 2020

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.85%. Comparing base (53234ab) to head (25f5056).

Current head 25f5056 differs from pull request most recent head 4e75e8c

Please upload reports for the commit 4e75e8c to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #67   +/-   ##
========================================
  Coverage    93.85%   93.85%           
========================================
  Files           28       28           
  Lines          863      863           
  Branches       125      125           
========================================
  Hits           810      810           
  Misses          52       52           
  Partials         1        1           

@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 554df5d to 14d8ae8 Compare November 9, 2020 13:49
@renovate renovate Bot changed the title fix(deps): update dependency socket.io to v3.0.1 chore(deps): update dependency socket.io to v2.3.1 Nov 9, 2020
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 7 times, most recently from 49cbd27 to ee4afa3 Compare November 16, 2020 17:36
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from ee4afa3 to 7d22ae8 Compare November 17, 2020 06:18
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 7 times, most recently from f885ffc to 6e6aba9 Compare November 23, 2020 15:37
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 5 times, most recently from b39524d to 2e800c6 Compare December 2, 2020 02:52
@dex-dev-outlook dex-dev-outlook force-pushed the develop branch 2 times, most recently from 7703787 to 628c10e Compare December 2, 2020 05:19
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 4 times, most recently from 631f008 to e7dc765 Compare December 3, 2020 16:42
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 4 times, most recently from c9dc91b to c8302a9 Compare December 18, 2020 14:52
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch 10 times, most recently from 1ebe431 to 3df1d52 Compare January 5, 2021 00:11
@renovate renovate Bot changed the title chore(deps): update dependency socket.io to v2.3.1 fix(deps): update socket.io packages Jan 5, 2021
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 3df1d52 to a6022e3 Compare January 5, 2021 05:13
@renovate renovate Bot changed the title fix(deps): update socket.io packages fix(deps): update dependency socket.io to v2.4.0 Jan 5, 2021
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from a6022e3 to df14165 Compare January 7, 2021 10:58
@renovate renovate Bot changed the title fix(deps): update dependency socket.io to v2.4.0 fix(deps): update socket.io packages Jan 7, 2021
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from df14165 to 25f5056 Compare January 21, 2021 05:40
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 25f5056 to b5b73dd Compare September 25, 2022 15:40
@renovate renovate Bot changed the title fix(deps): update socket.io packages fix(deps): update dependency socket.io to v2.5.0 Sep 25, 2022
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from b5b73dd to 9857033 Compare February 17, 2024 14:09
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 9857033 to 4e75e8c Compare June 19, 2024 11:27
@renovate renovate Bot changed the title fix(deps): update dependency socket.io to v2.5.0 fix(deps): update socket.io packages Jun 19, 2024
@renovate renovate Bot changed the title fix(deps): update socket.io packages fix(deps): update dependency socket.io to v2.5.1 Aug 6, 2024
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 4e75e8c to 287536c Compare August 10, 2025 12:36
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 287536c to 806ea42 Compare November 18, 2025 22:40
@renovate renovate Bot force-pushed the renovate/socket.io-packages branch from 806ea42 to 36c6ebf Compare December 31, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants