CVE-2021-22918

published 12 Jul 2021 · updated 16 Nov 2026

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().

5.8MediumCVSS 5.3EPSS 23%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 23%. Fixed in 10.*, 11.*, 12.22.2 and 10 more.

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().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
nodejs>=10.0 <10.*, >=11.0 <11.*, >=12.0 <12.22.2, >=13.0 <13.*, >=14.0 <14.17.2, >=15.0 <15.*, >=16.0 <16.4.1, >=4.0 <4.*, >=5.0 <5.*, >=6.0 <6.*, >=7.0 <7.*, >=8.0 <8.*, >=9.0 <9.*10.*, 11.*, 12.22.2, 13.*, 14.17.2, 15.*, 16.4.1, 4.*, 5.*, 6.*, 7.*, 8.*, 9.*

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-22918 severity on Zeptric[![CVE-2021-22918](https://zeptric.io/badge/cve/CVE-2021-22918.svg)](https://zeptric.io/cve/CVE-2021-22918)