Improper Certificate Validation Affecting aws-crt package, versions <1.9.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-AWSCRT-1924913
- published 23 Nov 2021
- disclosed 23 Nov 2021
- credit Unknown
Introduced: 23 Nov 2021
CVE-2021-40831 Open this link in a new tabHow to fix?
Upgrade aws-crt
to version 1.9.0 or higher.
Overview
aws-crt is a NodeJS/browser bindings to the aws-c-* libraries
Affected versions of this package are vulnerable to Improper Certificate Validation. It appends a user supplied Certificate Authority (CA) to the root CAs instead of overriding it on macOS systems. Additionally, SNI validation is also not enabled when the CA has been “overridden”. TLS handshakes will thus succeed if the peer can be verified either from the user-supplied CA or the system’s default trust-store. Attackers with access to a host’s trust stores or with ability to compromise a CA already in the host's trust store (note: the attacker must also be able to spoof DNS in this case) may be able to use this issue to bypass CA pinning.