diff --git a/doc/api/tls.md b/doc/api/tls.md index e83a34ecf67ce9..a96f5e24a85195 100644 --- a/doc/api/tls.md +++ b/doc/api/tls.md @@ -1453,6 +1453,11 @@ decrease overall server throughput. * `hostname` {string} The host name or IP address to verify the certificate @@ -1473,6 +1478,12 @@ the checks done with additional verification. This function is only called if the certificate passed all other checks, such as being issued by trusted CA (`options.ca`). +Earlier versions of Node.js incorrectly accepted certificates for a given +`hostname` if a matching `uniformResourceIdentifier` subject alternative name +was present (see [CVE-2021-44531][]). Applications that wish to accept +`uniformResourceIdentifier` subject alternative names can use a custom +`options.checkServerIdentity` function that implements the desired behavior. + ## `tls.connect(options[, callback])`