All vulnerabilities

Servers and applications

CVE-2021-22918

Node.js before 16.4.1, 14.17.2, 12.22.2 is vulnerable to an out-of-bounds read when uv__idna_toascii() is used to convert strings to ASCII. The pointer p is read and increased without checking whether it is beyond pe, with the latter holding a pointer to the end of the buffer. This can lead to information disclosures or crashes. This function can be triggered via uv_getaddrinfo().

Severity
Medium 5.3
Published
12 Jul 2021
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
12.22.2, 14.17.2, 16.4.1
Sources
NVD

Affected software

SoftwareAffected versions
Node.jsServers and applications · cpe:a:nodejs:node.js
  • From 12.0.0 before 12.22.2
  • From 14.0.0 before 14.17.2
  • From 16.0.0 before 16.4.1

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-22918
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-22918