You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OpenSSL default security level changed to 2 in Node.js 24.5 but docs still say it's 1 #59715
Although the OpenSSL documentation does not mention it, the default security level was changed in OpenSSL 3.2 from 1 to 2; see openssl/openssl@b3a33da. This change was included in Node.js 24.5, but the Node.js "OpenSSL security levels" documentation was not updated.
This was an undocumented breaking change for me, though that's my responsibility for using the Current version. It should be clearly documented if the LTS version is upgraded to OpenSSL 3.5, though, or that version be forced to stay at security level 1.
In case it helps, here's a small function that can demonstrate that the OpenSSL default security level has changed. When run with Node.js 24.4.1, this returns successfully, but when run with Node.js 24.7 it fails with ERR_SSL_EE_KEY_TOO_SMALL. In the latter case, the failure can be worked around by changing ciphers: 'DEFAULT' to ciphers: 'DEFAULT@SECLEVEL=1'.
Activity
carey commentedon Sep 2, 2025
In case it helps, here's a small function that can demonstrate that the OpenSSL default security level has changed. When run with Node.js 24.4.1, this returns successfully, but when run with Node.js 24.7 it fails with
ERR_SSL_EE_KEY_TOO_SMALL. In the latter case, the failure can be worked around by changingciphers: 'DEFAULT'tociphers: 'DEFAULT@SECLEVEL=1'.doc: update OpenSSL default security level to 2
doc: update OpenSSL default security level to 2
doc: update OpenSSL default security level to 2