Node.js Diffie-Hellman Documentation Flaw Addressed in Security Updates
Vulnerability Disclosure · 9 sources · Updated 13d ago · First seen Nov 28, 2023

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.


