CVE-2021-44531
Accepting arbitrary Subject Alternative Name (SAN) types, unless a PKI is specifically defined to use a particular SAN type, can result in bypassing name-constrained intermediates. Node.js < 12.22.9, < 14.18.3, < 16.13.2, and < 17.3.1 was accepting URI SAN types, which PKIs are often not defined to use. Additionally, when a protocol allows URI SANs, Node.js did not match the URI correctly.Versions of Node.js with the fix for this disable the URI SAN type when checking a certificate against a hostname. This behavior can be reverted through the --security-revert command-line option.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | nodejs | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | nodejs | Fix pending | ||
| Debian 14 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2021-44531 |
| Debian 13 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2021-44531 |
| Debian 12 | nodejs | Fixed | 12.22.9~dfsg-1 | DEBIAN-CVE-2021-44531 |
| Red Hat Enterprise Linux 9 | nodejs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-docs | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Not affected | ||
| Red Hat Enterprise Linux 9 | nodejs-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | npm | Not affected | ||
| Red Hat Enterprise Linux 8 | nodejs | Fixed | 1:14.20.1-2.module+el8.7.0+16991+b0a68a3e | RHEA-2022:5139 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed | 1:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHEA-2022:5139 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed | 1:14.20.1-2.module+el8.7.0+16991+b0a68a3e | RHSA-2022:9073 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed | 1:16.18.1-3.module+el8.7.0+17465+1a1abd74 | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed | 0:2.0.3-1.module+el8.4.0+11732+c668cc9f | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed | 0:17-3.module+el8.1.0+3369+37ae6a45 | RHSA-2022:7830 |
| Red Hat Enterprise Linux 8 | npm | Fixed | 1:6.14.17-1.14.20.1.2.module+el8.7.0+16991+b0a68a3e | RHSA-2022:9073 |
| AlmaLinux 8 | nodejs | Fixed | 1:16.18.1-3.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:16.18.1-3.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:16.18.1-3.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:16.18.1-3.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 2.0.20-2.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 25-1.module_el8.5.0+2605+45d748af | ALSA-2022:7830 |
| AlmaLinux 8 | npm | Fixed | 1:8.19.2-1.16.18.1.3.module_el8.7.0+3371+ed8c43db | ALSA-2022:7830 |
| Rocky Linux 8 | nodejs | Fixed | 1:16.18.1-3.module+el8.7.0+1108+49363b0d | RLSA-2022:7830 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:2.0.20-2.module+el8.7.0+1108+49363b0d | RLSA-2022:7830 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:23-3.module+el8.5.0+733+de4fee6c | RLSA-2022:7830 |
| Alpine Linux 3.24 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.24 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.24 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.23 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.23 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.23 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.22 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.22 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.22 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.21 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.21 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.21 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.20 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.20 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.20 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.19 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.19 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.19 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.18 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.18 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.18 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.17 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.17 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.17 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.16 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.16 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.16 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.15 | nodejs | Fixed | 16.13.2-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.15 | nodejs-current | Fixed | 17.3.1-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.15 | openjdk11 | Fixed | 11.0.15_p10-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.14 | nodejs | Fixed | 14.19.0-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.13 | nodejs | Fixed | 14.19.0-r0 | ALPINE-CVE-2021-44531 |
| Alpine Linux 3.12 | nodejs | Fixed | 12.22.10-r0 | ALPINE-CVE-2021-44531 |
What the vendor says
As published in the CVE record by hackerone, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- NodeJS Node: affected: 4.0 to before 4.*, 5.0 to before 5.*, 6.0 to before 6.*, 7.0 to before 7.*, 8.0 to before 8.*, 9.0 to before 9.*; fixed in
12.22.9,14.18.3,16.13.2,17.3.1
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5170 (vendor-advisory)
References
- https://hackerone.com/reports/1429694
- https://nodejs.org/en/blog/vulnerability/jan-2022-security-releases/
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://security.netapp.com/advisory/ntap-20220325-0007/
- https://www.debian.org/security/2022/dsa-5170
- https://www.oracle.com/security-alerts/cpujul2022.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.