# CVE-2021-22918: Node.js 14 and 2 others: Out-of-bounds Read (CWE-125)

CVE-2021-22918 is fixed in 13 products on 2 platforms, first by Node.js 12 12.22.2, released July 1, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-22918
- Priority: Routine
- CVSS: 5.3 (Moderate)
- EPSS: 0.2313
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 1, 2021
- Weakness: CWE-125: Out-of-bounds Read (CWE-125)
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2021-22918

## Description

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | Node.js 12 | 12.22.2 | [Node.js 12 12.22.2](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.12-12.22.2.md) | Jul 1, 2021 |
| Windows apps | Node.js 14 | 14.17.2 | [Node.js 14 14.17.2](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.14-14.17.2.md) | Jul 1, 2021 |
| Windows apps | Node.js 16 | 16.4.1 | [Node.js 16 16.4.1](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.16-16.4.1.md) | Jul 1, 2021 |
| Linux | libuv RHEL 8 | 1:1.41.1-1.el8_4 | [RHSA-2021:3075](https://patchblox.com/security/data/fix/linux/rhsa-2021-3075.md) | Aug 10, 2021 |
| Linux | libuv ol 8 | 1:1.41.1-1.el8_4 | [ELSA-2021-3075](https://patchblox.com/security/data/fix/linux/elsa-2021-3075.md) | Aug 11, 2021 |
| Linux | libuv-devel RHEL 8 | 1:1.41.1-1.el8_4 | [RHSA-2021:3075](https://patchblox.com/security/data/fix/linux/rhsa-2021-3075.md) | Aug 10, 2021 |
| Linux | libuv-devel ol 8 | 1:1.41.1-1.el8_4 | [ELSA-2021-3075](https://patchblox.com/security/data/fix/linux/elsa-2021-3075.md) | Aug 11, 2021 |
| Linux | libuv1 Ubuntu 20.04 LTS (focal) | 1.34.2-1ubuntu1.3 | [libuv1 1.34.2-1ubuntu1.3](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libuv1-1.34.2-1ubuntu1.3.md) | Jul 1, 2021 |
| Linux | nodejs RHEL 8 | 1:14.17.3-2.module+el8.4.0+11738+3bd42762 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs ol 8 | 1:12.22.3-2.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | nodejs-devel RHEL 8 | 1:14.17.3-2.module+el8.4.0+11738+3bd42762 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs-devel ol 8 | 1:12.22.3-2.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | nodejs-docs RHEL 8 | 1:14.17.3-2.module+el8.4.0+11738+3bd42762 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs-docs ol 8 | 1:12.22.3-2.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | nodejs-full-i18n RHEL 8 | 1:14.17.3-2.module+el8.4.0+11738+3bd42762 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs-full-i18n ol 8 | 1:12.22.3-2.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | nodejs-nodemon RHEL 8 | 0:2.0.3-1.module+el8.3.0+6519+9f98ed83 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs-nodemon ol 8 | 0:2.0.3-1.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | nodejs-packaging RHEL 8 | 0:23-3.module+el8.3.0+6519+9f98ed83 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | nodejs-packaging ol 8 | 0:17-3.module+el8.1.0+5393+aaf413e3 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |
| Linux | npm RHEL 8 | 1:6.14.13-1.14.17.3.2.module+el8.4.0+11738+3bd42762 | [RHSA-2021:3074](https://patchblox.com/security/data/fix/linux/rhsa-2021-3074.md) | Aug 10, 2021 |
| Linux | npm ol 8 | 1:6.14.13-1.12.22.3.2.module+el8.4.0+20281+eb64e322 | [ELSA-2021-3073](https://patchblox.com/security/data/fix/linux/elsa-2021-3073.md) | Aug 12, 2021 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
