CVE-2020-26149: Sensitive data exposure in NATS
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.56185%
CWE
Published
10/8/2020
Updated
9/11/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
nats | npm | >= 2.0.0-201, <= 2.0.0-206 | 2.0.0-209 |
nats.ws | npm | >= 1.0.0-85, <= 1.0.0-110 | 1.0.0-111 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of connection configuration options during the CONNECT message serialization. The commit in nats.deno (v1.0.0-9) specifically addresses this by filtering connection options, and the advisory explicitly mentions the 'connection' configuration being fully serialized. The function creating the CONNECT message (likely named createConnect in nats_base_client.ts) would be directly responsible for this insecure serialization. While exact function names/paths for npm packages aren't explicitly shown in available data, the Deno client's fix provides a clear pattern matching the described vulnerability mechanism.