$ nvm use v20
Now using node v20.17.0 (npm v10.8.3)
$ node test.js
Running on v20.17.0
node:internal/crypto/cipher:79
return method(data, format, type, passphrase, buffer, padding, oaepHash,
^
TypeError: RSA_PKCS1_PADDING is no longer supported for private decryption, this can be reverted with --security-revert=CVE-2023-46809
at node:internal/crypto/cipher:79:12
at file:///.../test.js:11:23 {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v20.17.0
$ node --security-revert=CVE-2023-46809 test.js
SECURITY WARNING: Reverting CVE-2023-46809: Marvin attack on PKCS#1 padding
Running on v20.17.0
Match
$ nvm use v22
Now using node v22.11.0 (npm v10.9.0)
$ node test.js
Running on v22.11.0
node:internal/crypto/cipher:79
return method(data, format, type, passphrase, buffer, padding, oaepHash,
^
TypeError: RSA_PKCS1_PADDING is no longer supported for private decryption, this can be reverted with --security-revert=CVE-2024-PEND
at node:internal/crypto/cipher:79:12
at file:///.../test.js:11:23 {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v22.11.0
$ node --security-revert=CVE-2024-PEND test.js
node: Error: Attempt to revert an unknown CVE [CVE-2024-PEND]
$ nvm use v23
Now using node v23.1.0 (npm v10.9.0)
$ node test.js
Running on v23.1.0
node:internal/crypto/cipher:79
return method(data, format, type, passphrase, buffer, padding, oaepHash,
^
TypeError: RSA_PKCS1_PADDING is no longer supported for private decryption, this can be reverted with --security-revert=CVE-2024-PEND
at node:internal/crypto/cipher:79:12
at file:///.../test.js:11:23 {
code: 'ERR_INVALID_ARG_VALUE'
}
Node.js v23.1.0
$ node --security-revert=CVE-2024-PEND test.js
node: Error: Attempt to revert an unknown CVE [CVE-2024-PEND]
Version
v22.11.0, v23.1.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Trying to run this sample code:
How often does it reproduce? Is there a required condition?
I've tested on v22.0.0, v22.10.0, v22.11.0 and v23.1.0 - all return
What is the expected behavior? Why is that the expected behavior?
It should run with a warning as v20.17.0
What do you see instead?
It complains about unknown CVE
Additional information
Complete 'test' session