High, CVSS 7.5npmAmendedPublished
Sensitive data exposure in NATS
CVE-2020-26149 · GHSA-82rf-q3pr-4f6p
- Affected
- npm nats.ws >= 1.0.0-85, <= 1.0.0-110
- Fixed in
- 1.0.0-111· Vendor fix available
- Issue
- Preview versions of two NPM packages and one Deno package from the NATS project contain an information disclosure flaw, leaking options to the NATS server; for one package, this includes TLS private credentials. The connection configuration options in these JavaScript-based implementations were fully serialized and sent to the server in the client's CONNECT message, immediately after TLS establishment. The nats.js client supports Mutual TLS and the credentials for the TLS client key are included in the connection configuration options; disclosure of the client's TLS private key to the server has been observed. Most authentication mechanisms are handled after connection, instead of as part of connection, so other authentication mechanisms are unaffected. For clarity: NATS account NKey authentication is NOT affected. Neither the nats.ws nor the nats.deno clients support Mutual TLS: the affected versions listed below are those where the logic flaw is present. We are including the…
Recommended action: Upgrade to 1.0.0-111 (pre-release) or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.