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
Security releases
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
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
- 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.
- 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.
- 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)
- 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.
- 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
- 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.
- How do I fix CVE-2023-26154?
- Upgrade
pubnubto 7.4.0 or later - Upgrade
com.pubnub:pubnub-kotlinto 7.7.0 or later - Upgrade
github.com/pubnub/go/v7to 7.2.0 or later - Upgrade
Pubnubto 6.19.0 or later - Upgrade
pubnubto 5.3.0 or later - Upgrade
pubnubto 0.4.0 or later - Upgrade
pubnub/pubnubto 6.1.0 or later - Upgrade
pubnubto 4.3.0 or later - Upgrade
pubnubto 7.3.0 or later - Upgrade
github.com/pubnub/swiftto 6.2.0 or later - Upgrade
github.com/pubnub/goto 0.0.0-20231016150651-428517fef5b9 or later - Upgrade
github.com/pubnub/go/v6to 6.1.1-0.20231016150651-428517fef5b9 or later - Upgrade
github.com/pubnub/go/v5to 5.0.4-0.20231016150651-428517fef5b9 or later
- Upgrade