synced 15 MIN AGO
01 Record

CVE-2021-22931

Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js

UnratedPUBLISHEDCNA: hackerone
CNA base scoreUnratedNo CNA CVSS vector

02 Description

Node.js before 16.6.0, 14.17.4, and 12.22.4 is vulnerable to Remote Code Execution, XSS, Application crashes due to missing input validation of host names returned by Domain Name Servers in Node.js

03 Exploitation and scoring

Exploitation
Assessed, none found. CISA's assessment recorded neither public exploit code nor evidence of exploitation when it was made.
SSVC decision
  • ExploitationnoneCISA recorded no public exploit code and no evidence of exploitation.
  • AutomatableyesAn attacker can reliably automate reconnaissance through exploitation, so this scales.
  • Technical ImpacttotalSuccessful exploitation gives total control of the vulnerable component.
CISA publishes the decision points, not a final SSVC decision. The decision also depends on mission and well-being impact, which is a property of your deployment rather than of the vulnerability.
EPSS probability
21.95% probability of exploitation activity in the next 30 days.
EPSS percentile
Equal to or higher than the score of 97.4% of scored records. A rank, not a probability.
NVD base score
9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
NVD CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD analysis status
Modified. NVD last modified this record on 2026-06-17.
Red Hat severity
Moderate. Red Hat's rating for its own products, not a CVSS rating.

Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.

04 Metadata

Published
2021-08-16 00:00Z5 YR AGO
Last updated
2025-04-30 22:24Z1 YR AGO
Reserved
2021-01-06
Assigning CNA
hackerone
Record state
PUBLISHED
Severity
Not rated by the issuing CNA
CNA CVSS vector
Not published by the issuing CNA
Weaknesses
  • CWE-170Improper Null TerminationBase
  • CWE-20Improper Input ValidationClass
Data version
5.1
Document digest
5c357b6afa976033c89ad1f06f0d70e112fb51a83b6ccd1498494b3ede4f2bbc

05 Affected products

VendorProductVersionsPlatforms
NodeJSNode4.0 to < 4.*, 5.0 to < 5.*, 6.0 to < 6.*, 7.0 to < 7.*, 8.0 to < 8.*, 9.0 to < 9.*, 10.0 to < 10.*, 11.0 to < 11.*, 12.0 to < 12.22.5, 13.0 to < 13.*, 14.0 to < 14.17.5, 15.0 to < 15.*, 16.0 to < 16.6.2—

06 References

07 Fixed in

AlmaLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-docs
    Fixed in 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-nodemon
    Fixed in 2.0.3-1.module_el8.4.0+2521+c668cc9f
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 17-3.module_el8.3.0+2023+d2377ea3
    • Affected before 17-3.module_el8.4.0+2224+b07ac28e
    • Affected before 17-3.module_el8.4.0+2521+c668cc9f
    • Affected before 23-3.module_el8.4.0+2522+3bd42762
    • Affected before 23-3.module_el8.5.0+254+b4526b16
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441

Source: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

Arch Linux

  • nodejs
    Not affected

Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.

CloudLinux 8

  • nodejs
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-devel
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-docs
    Fixed in 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
  • nodejs-full-i18n
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:12.22.5-1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:12.22.5-1.module_el8.5.0+85+79a7b441
  • nodejs-nodemon
    Fixed in 2.0.3-1.module_el8.4.0+2521+c668cc9f
  • nodejs-packaging
    Fixed

    A version is affected if any line below covers it.

    • Affected before 17-3.module_el8.3.0+2023+d2377ea3
    • Affected before 17-3.module_el8.4.0+2224+b07ac28e
    • Affected before 17-3.module_el8.4.0+2521+c668cc9f
    • Affected before 23-3.module_el8.4.0+2522+3bd42762
    • Affected before 23-3.module_el8.5.0+254+b4526b16
  • npm
    Fixed

    A version is affected if any line below covers it.

    • Affected before 1:6.14.14-1.12.22.5.1.module_el8.4.0+2529+af52a4c7
    • Affected before 1:6.14.14-1.12.22.5.1.module_el8.5.0+85+79a7b441

Derived from AlmaLinux 8. Partial coverage: only packages taken from AlmaLinux 8 are listed.

Source: CloudLinux errata, CloudLinux Inc. Derived from: AlmaLinux, AlmaLinux OS. Copyright (c) 2023 AlmaLinux OS. Licensed under MIT License. Received through OSV.dev. Reformatted by exploit.cc.

A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.