pubnub@4.27.2 vulnerabilities

Publish & Subscribe Real-time Messaging with PubNub

  • latest version

    8.3.1

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    22 days ago

  • licenses detected

    • >=3.1.0 <7.4.2
  • Direct Vulnerabilities

    Known vulnerabilities in the pubnub package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Insufficient Entropy

    pubnub is a Publish & Subscribe Real-time Messaging with PubNub

    Affected versions of this package are vulnerable to Insufficient Entropy via the getKey function, due to inefficient implementation of the AES-256-CBC cryptographic algorithm. The provided encrypt function is less secure when hex encoding and trimming are applied, leaving half of the bits in the key always the same for every encoded message or file.

    Note:

    In order to exploit this vulnerability, the attacker needs to invest resources in preparing the attack and brute-force the encryption.

    How to fix Insufficient Entropy?

    Upgrade pubnub to version 7.4.0 or higher.

    <7.4.0