Skip to content

Conversation

@L04DB4L4NC3R
Copy link
Member

Snyk has created this PR to upgrade socket.io from 2.3.0 to 2.4.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 21 days ago, on 2021-01-04.

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Denial of Service (DoS)
SNYK-JS-SOCKETIOPARSER-1056752
554/1000
Why? Proof of Concept exploit, Recently disclosed, CVSS 7.5
Proof of Concept
Insecure Defaults
SNYK-JS-SOCKETIO-1024859
554/1000
Why? Proof of Concept exploit, Recently disclosed, CVSS 7.5
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: socket.io
  • 2.4.0 - 2021-01-04

    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:

  • 2.3.0 - 2019-09-20
from socket.io GitHub release notes
Commit messages
Package name: socket.io
  • 873fdc5 chore(release): 2.4.0
  • f78a575 fix(security): do not allow all origins by default
  • d33a619 fix: properly overwrite the query sent in the handshake
  • 3951a79 chore: bump engine.io version
  • 6fa026f ci: migrate to GitHub Actions

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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.

3 participants