CVE-2020-26149: High severity nats deno vulnerability

Published Sep 30, 2020
·
Updated

NATS nats.js before 2.0.0-209, nats.ws before 1.0.0-111, and nats.deno before 1.0.0-9 allow credential disclosure from a client to a server.

Other sources

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 nats.ws and nats.deno versions out of an abundance of caution, as library maintainers, but rate as minimal the likelihood of applications leaking sensitive data.

Security impact:

NPM package nats.js: + mainline is unaffected + beta branch is vulnerable from 2.0.0-201, fixed in 2.0.0-209

Logic flaw:

NPM package nats.ws: + status: preview + flawed from 1.0.0-85, fixed in 1.0.0-111 Deno repository https://github.com/nats-io/nats.deno + status: preview + flawed in all git tags prior to fix + fixed with git tag v1.0.0-9

Impact:

For deployments using TLS client certificates (for mutual TLS), private key material for TLS is leaked from the client application to the server. If the server is untrusted (run by a third party), or if the client application also disables TLS verification (and so the true identity of the server is unverifiable) then authentication credentials are leaked.

Affected Software

5 affected componentsFixes available
npm/nats.ws>=1.0.0-85<=1.0.0-110
1.0.0-111
npm/nats>=2.0.0-201<=2.0.0-206
2.0.0-209
linuxfoundation Nats.deno<1.0.0-9
linuxfoundation Nats.js Node.js<2.0.0-209
linuxfoundation Nats.ws<1.0.0-111

Event History

Sep 30, 2020
CVE Published
via MITRE·12:05 PM
Data Sourced
via MITRE·12:05 PM
Description
Oct 8, 2020
Advisory Published
10:11 PM

Frequently Asked Questions

1

What is the severity of CVE-2020-26149?

CVE-2020-26149 has been classified as a moderate severity vulnerability due to its potential for credential disclosure.

2

How do I fix CVE-2020-26149?

To fix CVE-2020-26149, update nats.js to version 2.0.0-209 or later, nats.ws to version 1.0.0-111 or later, and nats.deno to version 1.0.0-9 or later.

3

What applications are affected by CVE-2020-26149?

CVE-2020-26149 affects nats.js versions before 2.0.0-209, nats.ws versions before 1.0.0-111, and nats.deno versions before 1.0.0-9.

4

What type of vulnerability is CVE-2020-26149?

CVE-2020-26149 is an information disclosure vulnerability that allows sensitive options to be leaked from a client to a server.

5

Is CVE-2020-26149 actively being exploited?

As of now, there have been no publicly reported exploits for CVE-2020-26149, but it is advisable to mitigate the risk by updating affected software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203