org.mvnpm:websocket-extensions@0.1.4

  • latest version

    0.1.4

  • first published

    1 years ago

  • latest version published

    1 years ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:websocket-extensions 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
    Data Amplification

    org.mvnpm:websocket-extensions is a Generic extension manager for WebSocket connections

    Affected versions of this package are vulnerable to Data Amplification in the inflate handling in lib/session.js, which fully decompresses an incoming WebSocket frame before any size check and does not receive the maxLength limit configured on websocket-driver or faye-websocket. An unauthenticated remote client that negotiates the permessage-deflate extension can send a small, highly compressible message of one repeated byte, around 1/1000 of its decompressed size, and force the server to allocate a buffer about 1000 times the received frame, bypassing the configured limit and crashing the process when memory runs out. This affects any server whose WebSocket stack adds the permessage-deflate extension, and full remediation requires upgrading websocket-extensions and websocket-driver as well so the maxLength option is forwarded to the extension.

    How to fix Data Amplification?

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

    [0,)