Home / pubnub / pubnub / CVE-2023-26154
CVE-2023-26154: is it exploited, and which versions of pubnub are affected and fixed?
CVE-2023-26154 is an insufficient Entropy vulnerability in pubnub. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:09 UTC). Affected: pubnub before 7.4.0, com.pubnub:pubnub-kotlin before 7.7.0, com.pubnub:pubnub through 4.6.5 and 11 more (GitHub advisory GHSA-5844-q3fc-56rh). Fixed in 7.4.0, 7.7.0, 7.2.0, 0.0.0-20231016150651-428517fef5b9 and 2 more (GitHub advisory GHSA-5844-q3fc-56rh). Severity: Medium (5.9, CVSS 3.1, from snyk).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:09 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:33 UTC.
What is CVE-2023-26154?
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.
From the CVE record by snyk, last updated August 2, 2024, 11:39 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| pubnub | before 7.4.0 | 7.4.0 | |
| com.pubnub:pubnub | all versions | ||
| Pubnub | before 6.19.0 | 6.19.0 | |
| github.com/pubnub/go | all versions | ||
| github.com/pubnub/go/v7 | before 7.2.0 | 7.2.0 | |
| pubnub | before 7.3.0 | 7.3.0 | |
| pubnub/pubnub | before 6.1.0 | 6.1.0 | |
| pubnub | before 5.3.0 | 5.3.0 | |
| pubnub | before 0.4.0 | 0.4.0 | |
| pubnub/c-core | before 4.5.0 | 4.5.0 | |
| com.pubnub:pubnub-kotlin | before 7.7.0 | 7.7.0 | |
| pubnub/swift | before 6.2.0 | 6.2.0 | |
| PubNub | before 5.2.0 | 5.2.0 | |
| pubnub | before 4.3.0 | 4.3.0 |
As the CVE record by snyk states it, last updated August 2, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | pubnub | < 7.4.0 | 7.4.0 | GHSA-5844-q3fc-56rh |
| Maven | com.pubnub:pubnub-kotlin | < 7.7.0 | 7.7.0 | GHSA-5844-q3fc-56rh |
| Maven | com.pubnub:pubnub | <= 4.6.5 | none listed | GHSA-5844-q3fc-56rh |
| Go | github.com/pubnub/go/v7 | < 7.2.0 | 7.2.0 | GHSA-5844-q3fc-56rh |
| Go | github.com/pubnub/go | < 0.0.0-20231016150651-428517fef5b9 | 0.0.0-20231016150651-428517fef5b9 | GHSA-5844-q3fc-56rh |
| Go | github.com/pubnub/go/v6 | < 6.1.1-0.20231016150651-428517fef5b9 | 6.1.1-0.20231016150651-428517fef5b9 | GHSA-5844-q3fc-56rh |
| Go | github.com/pubnub/go/v5 | < 5.0.4-0.20231016150651-428517fef5b9 | 5.0.4-0.20231016150651-428517fef5b9 | GHSA-5844-q3fc-56rh |
| NuGet | Pubnub | < 6.19.0 | 6.19.0 | GHSA-5844-q3fc-56rh |
| SwiftURL | github.com/pubnub/swift | < 6.2.0 | 6.2.0 | GHSA-5844-q3fc-56rh |
| RubyGems | pubnub | < 5.3.0 | 5.3.0 | GHSA-5844-q3fc-56rh |
| crates.io | pubnub | < 0.4.0 | 0.4.0 | GHSA-5844-q3fc-56rh |
| Packagist | pubnub/pubnub | < 6.1.0 | 6.1.0 | GHSA-5844-q3fc-56rh |
| Pub | pubnub | < 4.3.0 | 4.3.0 | GHSA-5844-q3fc-56rh |
| PyPI | pubnub | < 7.3.0 | 7.3.0 | GHSA-5844-q3fc-56rh |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated July 22, 2025. Summary: pubnub Insufficient Entropy vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| pubnub | c-core | before 4.5.0 | application |
| pubnub | kotlin | before 7.7.0 | application |
| pubnub | pubnub | before 0.4.0 | application |
| pubnub | pubnub | before 7.2.0 | application |
| pubnub | pubnub | from 3.6.4 before 4.3.0 | application |
| pubnub | pubnub | from 4.3.1 before 5.2.0 | application |
| pubnub | pubnub | from 6.0.0 before 6.1.0 | application |
| pubnub | pubnub | from 6.2.0 before 6.19.0 | application |
| pubnub | pubnub | from 7.0.0 before 7.3.0 | application |
| pubnub | pubnub | from 7.3.1 before 7.4.0 | application |
| pubnub | swift | before 6.2.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:42 UTC.
How severe is CVE-2023-26154?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | snyk |
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-26154 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.96% probability of exploitation activity in the next 30 days, percentile 62.8 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-331 Insufficient Entropy
Where are the vendor advisories and references?
- https://security.snyk.io/vuln/SNYK-JS-PUBNUB-5840690
- https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098371
- https://security.snyk.io/vuln/SNYK-DOTNET-PUBNUB-6098372
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGO-6098373
- https://security.snyk.io/vuln/SNYK-GOLANG-GITHUBCOMPUBNUBGOV7-6098374
- https://security.snyk.io/vuln/SNYK-PYTHON-PUBNUB-6098375
- https://security.snyk.io/vuln/SNYK-PHP-PUBNUBPUBNUB-6098376
- https://security.snyk.io/vuln/SNYK-RUBY-PUBNUB-6098377
- https://security.snyk.io/vuln/SNYK-RUST-PUBNUB-6098378
- https://security.snyk.io/vuln/SNYK-UNMANAGED-PUBNUBCCORE-6098379
- https://security.snyk.io/vuln/SNYK-JAVA-COMPUBNUB-6098380
- https://security.snyk.io/vuln/SNYK-SWIFT-PUBNUBSWIFT-6098381
- https://security.snyk.io/vuln/SNYK-COCOAPODS-PUBNUB-6098384
- https://security.snyk.io/vuln/SNYK-PUB-PUBNUB-6098385
- https://gist.github.com/vargad/20237094fce7a0a28f0723d7ce395bb0
- https://github.com/pubnub/javascript/blob/master/src/crypto/modules/web.js%23L70
- https://github.com/pubnub/javascript/commit/fb6cd0417cbb4ba87ea2d5d86a9c94774447e119
Who found and reported it?
- Varga Daniel (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- February 20, 2023
- Published
- December 6, 2023, 05:00 UTC
- CVE record updated
- August 2, 2024, 11:39 UTC by snyk
- NVD
- Modified, last modified June 17, 2026, 05:42 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:33 UTC; KEV December 3, 2026, 15:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-26154
Is CVE-2023-26154 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:09 UTC. FIRST's EPSS gives it a 0.96% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of pubnub are affected by CVE-2023-26154?
pubnub before 7.4.0, com.pubnub:pubnub-kotlin before 7.7.0, com.pubnub:pubnub through 4.6.5, github.com/pubnub/go/v7 before 7.2.0, github.com/pubnub/go before 0.0.0-20231016150651-428517fef5b9, github.com/pubnub/go/v6 before 6.1.1-0.20231016150651-428517fef5b9 and 8 more, per the GitHub advisory GHSA-5844-q3fc-56rh. The tables above give every range the sources list.
Which version fixes CVE-2023-26154?
7.4.0, 7.7.0, 7.2.0, 0.0.0-20231016150651-428517fef5b9, 6.1.1-0.20231016150651-428517fef5b9 and 5.0.4-0.20231016150651-428517fef5b9, per the GitHub advisory GHSA-5844-q3fc-56rh. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-26154?
Medium (5.9, CVSS 3.1, from snyk). The severity table above shows each score with its source.
Where is the official record of CVE-2023-26154?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.