Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilitywidely-deployed-product-advisory

Node.js Diffie-Hellman Documentation Flaw Addressed in Security Updates

Vulnerability Disclosure · 9 sources · Updated 13d ago · First seen Nov 28, 2023

Node.js Diffie-Hellman Documentation Flaw Addressed in Security Updates

Node.js vulnerability CVE-2023-30590 exposed a mismatch between documented and actual Diffie-Hellman key-generation behavior. The key-generation method creates a private key only when one has not already been set, despite documentation stating that it generates both private and public keys. Applications that explicitly set a private key and then expect key generation to replace it could therefore make incorrect security assumptions. The CVE record identifies affected release lines from Node.js 4 through 20; Debian’s advisory clarifies that remediation corrected the documentation rather than changing the cryptographic behavior. The supplied advisories do not report active exploitation.

Fedora 37 and 38 distributed Node.js 16.20.1 and 18.16.1 security packages addressing CVE-2023-30590 alongside experimental-policy bypass, installer privilege escalation, certificate-related process interruption, and HTTP request smuggling flaws. Subsequent Fedora packages, including 16.20.2 and 18.17.1, incorporated further security fixes, including an experimental-policy bypass. Debian addressed the documentation discrepancy in its broader security updates for Debian 10 buster, version 10.24.0~dfsg-1~deb10u4, and Debian 11 bullseye, version 12.22.12~dfsg-1~deb11u5. Those updates also covered issues such as RSA timing-side-channel exposure and denial of service. Administrators should deploy supported, vendor-patched Node.js packages, while application owners should review Diffie-Hellman workflows for assumptions that key generation always replaces a previously supplied private key.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Jun 20, 2023 – Nov 28, 2023
  1. Reported Mar 1, 20243y ago

    Debian 10 security update addresses Diffie-Hellman documentation mismatch

    Debian issued DLA-3776-1, fixing CVE-2023-30590 and two other vulnerabilities in nodejs version 10.24.0~dfsg-1~deb10u4 for Debian 10 buster. The CVE-2023-30590 remediation updates the documentation to match the existing generateKeys() implementation.

    [SECURITY] [DLA 3776-1] nodejs security update
  2. Nov 28, 20233y ago

    CVE-2023-30590 record published for Node.js Diffie-Hellman API mismatch

    The CVE record documented that generateKeys() creates a private key only when none is already set, contrary to documentation describing generation of both private and public keys. Applications relying on the documented behavior could make incorrect security assumptions.

    CVE Record: CVE-2023-30590
  3. Reported Aug 18, 20233y ago

    Fedora 37 announces Node.js 18.17.1 security update

    Fedora issued update FEDORA-2023-18476abd7e for nodejs18 version 18.17.1-1.fc37. The update incorporates the August Node.js security releases, whose advisory describes the experimental policy bypass CVE-2023-32002.

    [SECURITY] Fedora 37 Update: nodejs18-18.17.1-1.fc37 - package-announce - Fedora mailing-lists
  4. Aug 16, 20233y ago

    Fedora 38 announces Node.js 16.20.2 security update

    Fedora issued update FEDORA-2023-d12a917ab4 for nodejs16 version 16.20.2-1.fc38. Its advisory references the August Node.js security releases, including a Module._load() bypass of the experimental policy mechanism tracked as CVE-2023-32002.

    [SECURITY] Fedora 38 Update: nodejs16-16.20.2-1.fc38 - package-announce - Fedora mailing-lists
  5. Reported Jul 20, 20233y ago

    Fedora announces additional Node.js 16 and 18 security packages

    Fedora announced nodejs16 version 16.20.1 updates for Fedora 37 and Fedora 38, along with nodejs18 version 18.16.1 for Fedora 38. These packages incorporate upstream security updates addressing CVE-2023-30590 and other flaws.

    [SECURITY] Fedora 37 Update: nodejs16-16.20.1-1.fc37 - package-announce - Fedora mailing-lists
  6. Reported Jul 18, 20233y ago

    Fedora 37 announces Node.js 18.16.1 security update

    Fedora issued update FEDORA-2023-6b866fbe84 for nodejs18 version 18.16.1-1.fc37. The update includes the upstream security release addressing CVE-2023-30590 and other vulnerabilities.

    [SECURITY] Fedora 37 Update: nodejs18-18.16.1-1.fc37 - package-announce - Fedora mailing-lists
  7. Jun 20, 20233y ago

    Node.js releases 16.20.1 and 18.16.1 address CVE-2023-30590

    Node.js released security updates 16.20.1 and 18.16.1 addressing several vulnerabilities, including CVE-2023-30590. The Diffie-Hellman issue concerns generateKeys() not generating a new private key when one has already been set.

    [SECURITY] Fedora 37 Update: nodejs16-16.20.1-1.fc37 - package-announce - Fedora mailing-lists
  8. Reported Dec 22, 201214y ago

    Debian 11 security update addresses CVE-2023-30590 and seven other flaws

    Debian issued DLA-3886-1, addressing eight Node.js vulnerabilities in version 12.22.12~dfsg-1~deb11u5 for Debian 11 bullseye. The fixes cover the Diffie-Hellman API documentation discrepancy alongside request smuggling, policy bypass, RSA timing exposure, and denial-of-service issues.

    [SECURITY] [DLA 3886-1] nodejs security update
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
NodejsNode.Js
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.