Missing input validation of host names returned by Domain Name Servers (DNS) in the c-ares library can lead to output of wrong hostnames which may lead to Domain Hijacking.
Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js dns library which can lead to output of wrong hostnames (leading to Domain Hijacking) and injection vulnerabilities in applications using the library.
Impact
An attacker may be able to exploit the vulnerabilities to perform domain hijacking or injection attacks. The highest threat from the vulnerabilities is to confidentiality and integrity, as well as system availability.