CVE-2023-26154

CVE-2023-26154 is a medium-severity security vulnerability in pubnub (npm), affecting versions < 7.4.0. It is fixed in 7.4.0, 7.7.0, 7.2.0, 6.19.0, 5.3.0, 0.4.0, 6.1.0, 4.3.0, 7.3.0, 6.2.0, 0.0.0-20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9, 5.0.4-0.20231016150651-428517fef5b9.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

pubnub Insufficient Entropy vulnerability

Versions of the package pubnub before 7.4.0; all versions of the package com.pubnub:pubnub; versions of the package pubnub before 6.19.0; all versions of the package github.com/pubnub/go; versions of the package github.com/pubnub/go/v7 before 7.2.0; versions of the package pubnub before 7.3.0; versions of the package pubnub/pubnub before 6.1.0; versions of the package pubnub before 5.3.0; versions of the package pubnub before 0.4.0; versions of the package pubnub/c-core before 4.5.0; versions of the package com.pubnub:pubnub-kotlin before 7.7.0; versions of the package pubnub/swift before 6.2.0; versions of the package pubnub before 5.2.0; versions of the package pubnub before 4.3.0 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.

Impact

CVE-2023-26154 has a CVSS score of 5.9 (Medium). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (7.4.0, 7.7.0, 7.2.0, 6.19.0, 5.3.0, 0.4.0, 6.1.0, 4.3.0, 7.3.0, 6.2.0, 0.0.0-20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9, 5.0.4-0.20231016150651-428517fef5b9); upgrading removes the vulnerable code path.

Affected versions

pubnub (< 7.4.0) com.pubnub:pubnub-kotlin (< 7.7.0) com.pubnub:pubnub (<= 4.6.5) github.com/pubnub/go/v7 (< 7.2.0) Pubnub (< 6.19.0) pubnub (< 5.3.0) pubnub (< 0.4.0) pubnub/pubnub (< 6.1.0) pubnub (< 4.3.0) pubnub (< 7.3.0) github.com/pubnub/swift (< 6.2.0) github.com/pubnub/go (< 0.0.0-20231016150651-428517fef5b9) github.com/pubnub/go/v6 (< 6.1.1-0.20231016150651-428517fef5b9) github.com/pubnub/go/v5 (< 5.0.4-0.20231016150651-428517fef5b9)

Security releases

pubnub → 7.4.0 (npm) com.pubnub:pubnub-kotlin → 7.7.0 (maven) github.com/pubnub/go/v7 → 7.2.0 (go) Pubnub → 6.19.0 (nuget) pubnub → 5.3.0 (rubygems) pubnub → 0.4.0 (rust) pubnub/pubnub → 6.1.0 (composer) pubnub → 4.3.0 (pub) pubnub → 7.3.0 (pip) github.com/pubnub/swift → 6.2.0 (swift) github.com/pubnub/go → 0.0.0-20231016150651-428517fef5b9 (go) github.com/pubnub/go/v6 → 6.1.1-0.20231016150651-428517fef5b9 (go) github.com/pubnub/go/v5 → 5.0.4-0.20231016150651-428517fef5b9 (go)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

Upgrade the following packages to resolve this vulnerability:

pubnub to 7.4.0 or later; com.pubnub:pubnub-kotlin to 7.7.0 or later; github.com/pubnub/go/v7 to 7.2.0 or later; Pubnub to 6.19.0 or later; pubnub to 5.3.0 or later; pubnub to 0.4.0 or later; pubnub/pubnub to 6.1.0 or later; pubnub to 4.3.0 or later; pubnub to 7.3.0 or later; github.com/pubnub/swift to 6.2.0 or later; github.com/pubnub/go to 0.0.0-20231016150651-428517fef5b9 or later; github.com/pubnub/go/v6 to 6.1.1-0.20231016150651-428517fef5b9 or later; github.com/pubnub/go/v5 to 5.0.4-0.20231016150651-428517fef5b9 or later

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently Asked Questions

  1. What is CVE-2023-26154? CVE-2023-26154 is a medium-severity security vulnerability in pubnub (npm), affecting versions < 7.4.0. It is fixed in 7.4.0, 7.7.0, 7.2.0, 6.19.0, 5.3.0, 0.4.0, 6.1.0, 4.3.0, 7.3.0, 6.2.0, 0.0.0-20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9, 5.0.4-0.20231016150651-428517fef5b9.
  2. How severe is CVE-2023-26154? CVE-2023-26154 has a CVSS score of 5.9 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2023-26154?
    • pubnub (npm) (versions < 7.4.0)
    • com.pubnub:pubnub-kotlin (maven) (versions < 7.7.0)
    • com.pubnub:pubnub (maven) (versions <= 4.6.5)
    • github.com/pubnub/go/v7 (go) (versions < 7.2.0)
    • Pubnub (nuget) (versions < 6.19.0)
    • pubnub/pubnub (composer) (versions < 6.1.0)
    • github.com/pubnub/swift (swift) (versions < 6.2.0)
    • github.com/pubnub/go (go) (versions < 0.0.0-20231016150651-428517fef5b9)
    • github.com/pubnub/go/v6 (go) (versions < 6.1.1-0.20231016150651-428517fef5b9)
    • github.com/pubnub/go/v5 (go) (versions < 5.0.4-0.20231016150651-428517fef5b9)
  4. Is there a fix for CVE-2023-26154? Yes. CVE-2023-26154 is fixed in 7.4.0, 7.7.0, 7.2.0, 6.19.0, 5.3.0, 0.4.0, 6.1.0, 4.3.0, 7.3.0, 6.2.0, 0.0.0-20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9, 5.0.4-0.20231016150651-428517fef5b9. Upgrade to this version or later.
  5. Is CVE-2023-26154 exploitable, and should I be worried? Whether CVE-2023-26154 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2023-26154 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2023-26154?
    • Upgrade pubnub to 7.4.0 or later
    • Upgrade com.pubnub:pubnub-kotlin to 7.7.0 or later
    • Upgrade github.com/pubnub/go/v7 to 7.2.0 or later
    • Upgrade Pubnub to 6.19.0 or later
    • Upgrade pubnub to 5.3.0 or later
    • Upgrade pubnub to 0.4.0 or later
    • Upgrade pubnub/pubnub to 6.1.0 or later
    • Upgrade pubnub to 4.3.0 or later
    • Upgrade pubnub to 7.3.0 or later
    • Upgrade github.com/pubnub/swift to 6.2.0 or later
    • Upgrade github.com/pubnub/go to 0.0.0-20231016150651-428517fef5b9 or later
    • Upgrade github.com/pubnub/go/v6 to 6.1.1-0.20231016150651-428517fef5b9 or later
    • Upgrade github.com/pubnub/go/v5 to 5.0.4-0.20231016150651-428517fef5b9 or later

Stop the waste.
Protect your environment with Kodem.