LiveActive security incident?Get immediate response
CVE Record

CVE-2021-22939: If the Node.js https API was used incorrectly and "undefined" was in passed for the "rejectUnauthorized" pa...

If the Node.js https API was used incorrectly and "undefined" was in passed for the "rejectUnauthorized" parameter, no error was returned and connections to servers with an expired certificate would have been accepted.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Some Node.js applications could accept expired TLS certificates when developers accidentally passed undefined to rejectUnauthorized. That can weaken the trust check protecting HTTPS connections. Exposure depends on application code and runtime version, not just having Node.js installed.

Executive priority

Treat this as a targeted remediation item for applications that make sensitive outbound HTTPS connections. Prioritize internet-facing services, payment, identity, update, and API integrations running older Node.js versions or vendor products that bundle Node.js.

Technical view

CVE-2021-22939 is a CWE-295 certificate validation issue in Node.js https handling. The source bundle says Node versions 4.0 through 16.0 are affected when the https API is used incorrectly with rejectUnauthorized set to undefined, allowing expired certificates to be accepted.

Likely exposure

Most relevant exposure is server-side or client-side Node.js code that creates outbound HTTPS connections with configurable TLS options. Systems using affected Node.js versions but not passing undefined to rejectUnauthorized may not be practically exposed.

Exploitation context

The bundle does not show CISA KEV listing or active exploitation evidence. Practical abuse would require an affected application behavior plus an opportunity to influence or intercept HTTPS traffic. No exploit steps are provided in the cited sources.

Researcher notes

Evidence is strongest for the Node.js API behavior and affected major versions. The provided bundle lacks CVSS details, exact fixed versions, and active exploitation confirmation, so validation should focus on runtime inventory and code paths that set rejectUnauthorized.

Mitigation direction

  • Upgrade Node.js using the vendor security release guidance for CVE-2021-22939.
  • Check downstream vendor advisories for bundled Node.js runtimes in appliances or products.
  • Audit HTTPS client configuration for rejectUnauthorized values that may become undefined.
  • Set certificate verification behavior deliberately; do not rely on ambiguous defaults.

Validation and detection

  • Inventory deployed Node.js versions, including embedded and vendor-packaged runtimes.
  • Search application code for https options using rejectUnauthorized.
  • Review configuration paths that can pass undefined into TLS options.
  • Confirm patched versions through Node.js or affected product vendor advisories.
Prepared
Confidence
medium
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-295: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-22939 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
10Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
NodeJSNode4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-295 · source CWE mapping

Improper Certificate Validation

Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.