org.webjars.npm:socket.io-parser@4.0.5 vulnerabilities

  • latest version

    4.2.5

  • first published

    10 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:socket.io-parser package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Allocation of Resources Without Limits or Throttling

    org.webjars.npm:socket.io-parser is a socket.io protocol parser

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the Decoder class, which accepts an unlimited number of binary attachments. An attacker can exploit this to exhaust server memory.

    How to fix Allocation of Resources Without Limits or Throttling?

    A fix was pushed into the master branch but not yet published.

    [0,)
    • H
    Denial of Service (DoS)

    org.webjars.npm:socket.io-parser is a socket.io protocol parser

    Affected versions of this package are vulnerable to Denial of Service (DoS) due to insufficient validation when decoding a packet. An attacker can send an event with a name like '2[{"toString":"foo"}]' to trigger an uncaught exception and a crash, like the below.

    TypeError: Cannot convert object to primitive value
           at Socket.emit (node:events:507:25)
           at .../node_modules/socket.io/lib/socket.js:531:14
    

    How to fix Denial of Service (DoS)?

    Upgrade org.webjars.npm:socket.io-parser to version 3.4.3, 4.2.3 or higher.

    [3.4.0,3.4.3)[4.0.0,4.2.3)