# CVE-2020-8265: Node.js 14 and 3 others: Use After Free (CWE-416)

CVE-2020-8265 is fixed in 12 products on 2 platforms, first by Node.js 12 12.20.1, released January 4, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2020-8265
- Priority: High
- CVSS: 8.1 (Moderate)
- EPSS: 0.0912
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jan 6, 2021
- Weakness: CWE-416: Use After Free (CWE-416)
- Vendor advisory: https://nvd.nist.gov/vuln/detail/CVE-2020-8265

## Description

Node.js versions before 10.23.1, 12.20.1, 14.15.4, 15.5.1 are vulnerable to a use-after-free bug in its TLS implementation. When writing to a TLS enabled socket, node::StreamBase::Write calls node::TLSWrap::DoWrite with a freshly allocated WriteWrap object as first argument. If the DoWrite method does not return an error, this object is passed back to the caller as part of a StreamWriteResult structure. This may be exploited to corrupt memory leading to a Denial of Service or potentially other exploits.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | Node.js 10 | 10.23.2 | [Node.js 10 10.23.2](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.10-10.23.2.md) | Jan 26, 2021 |
| Windows apps | Node.js 12 | 12.20.1 | [Node.js 12 12.20.1](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.12-12.20.1.md) | Jan 4, 2021 |
| Windows apps | Node.js 14 | 14.15.4 | [Node.js 14 14.15.4](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.14-14.15.4.md) | Jan 4, 2021 |
| Windows apps | Node.js 15 | 15.5.1 | [Node.js 15 15.5.1](https://patchblox.com/security/data/fix/windows-app/openjs.nodejs.15-15.5.1.md) | Jan 4, 2021 |
| Linux | libnode64 Ubuntu 20.04 LTS (focal) | 10.19.0~dfsg-3ubuntu1.1 | [libnode64 10.19.0~dfsg-3ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libnode64-10.19.0-dfsg-3ubuntu1.1.md) | Jan 6, 2021 |
| Linux | nodejs RHEL 8 | 1:14.15.4-2.module+el8.3.0+9635+ffdf8381 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs Ubuntu 18.04.6 LTS (bionic) | 8.10.0~dfsg-2ubuntu0.4+esm2 | [nodejs 8.10.0~dfsg-2ubuntu0.4+esm2](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-nodejs-8.10.0-dfsg-2ubuntu0.4-esm2.md) | Jan 6, 2021 |
| Linux | nodejs Ubuntu 20.04 LTS (focal) | 10.19.0~dfsg-3ubuntu1.1 | [nodejs 10.19.0~dfsg-3ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-nodejs-10.19.0-dfsg-3ubuntu1.1.md) | Jan 6, 2021 |
| Linux | nodejs ol 8 | 1:14.15.4-2.module+el8.3.0+9657+a08a905a | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | nodejs-devel RHEL 8 | 1:14.15.4-2.module+el8.3.0+9635+ffdf8381 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs-devel ol 8 | 1:14.15.4-2.module+el8.3.0+9657+a08a905a | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | nodejs-docs RHEL 8 | 1:14.15.4-2.module+el8.3.0+9635+ffdf8381 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs-docs ol 8 | 1:14.15.4-2.module+el8.3.0+9657+a08a905a | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | nodejs-full-i18n RHEL 8 | 1:14.15.4-2.module+el8.3.0+9635+ffdf8381 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs-full-i18n ol 8 | 1:14.15.4-2.module+el8.3.0+9657+a08a905a | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | nodejs-nodemon RHEL 8 | 0:2.0.3-1.module+el8.3.0+6519+9f98ed83 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs-nodemon ol 8 | 0:2.0.3-1.module+el8.3.0+7818+6cd30d85 | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | nodejs-packaging RHEL 8 | 0:23-3.module+el8.3.0+6519+9f98ed83 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | nodejs-packaging ol 8 | 0:23-3.module+el8.3.0+7818+6cd30d85 | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |
| Linux | npm RHEL 8 | 1:6.14.10-1.14.15.4.2.module+el8.3.0+9635+ffdf8381 | [RHSA-2021:0551](https://patchblox.com/security/data/fix/linux/rhsa-2021-0551.md) | Feb 16, 2021 |
| Linux | npm ol 8 | 1:6.14.10-1.14.15.4.2.module+el8.3.0+9657+a08a905a | [ELSA-2021-0551](https://patchblox.com/security/data/fix/linux/elsa-2021-0551.md) | Feb 20, 2021 |

---

Data as of 2026-11-08T00:53:09Z 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.
