node-min — security advisory
A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.
- Products
- node-min
- Affected versions
- Not specified
- Fixed versions
- 15.14.1, 16.12.1, 16.17.1, 18.9.1
- CVEs
- CVE-2022-35255
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 19:54 UTC · Revision 1
Source evidence
A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.
osv:BIT-node-min-2022-35255
node-min
Fixed versions: 15.14.1, 16.12.1, 16.17.1, 18.9.1
Complete source record
{
"id": "7ef2408d5659ca5170a8f13c5f19685b2af5b756a87ea3ea9c4b6a05837be107",
"url": "https://osv.dev/vulnerability/BIT-node-min-2022-35255",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "BIT-node-min-2022-35255",
"summary": "A weak randomness in WebCrypto keygen vulnerability exists in Node.js 18 due to a change with EntropySource() in SecretKeyGenTraits::DoKeyGen() in src/crypto/crypto_keygen.cc. There are two problems with this: 1) It does not check the return value, it assumes EntropySource() always succeeds, but it can (and sometimes will) fail. 2) The random data returned byEntropySource() may not be cryptographically strong and therefore not suitable as keying material.",
"evidence": "osv:BIT-node-min-2022-35255",
"products": [
{
"name": {
"value": "node-min",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "15.14.1",
"evidence": "/affected/0/ranges"
},
{
"value": "16.12.1",
"evidence": "/affected/0/ranges"
},
{
"value": "16.17.1",
"evidence": "/affected/0/ranges"
},
{
"value": "18.9.1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "BIT-node-min-2022-35255",
"aliases": [
"BIT-node-2022-35255",
"BIT-node-min-2022-35255",
"CVE-2022-35255"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "15.0.0"
},
{
"fixed": "15.14.1"
},
{
"introduced": "16.0.0"
},
{
"fixed": "16.12.1"
},
{
"introduced": "16.13.0"
},
{
"fixed": "16.17.1"
},
{
"introduced": "18.0.0"
},
{
"fixed": "18.9.1"
}
]
}
],
"package": {
"name": "node-min",
"purl": "pkg:bitnami/node-min",
"ecosystem": "Bitnami"
},
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
}
],
"database_specific": {
"source": "https://github.com/bitnami/vulndb/tree/main/data/node-min/BIT-node-min-2022-35255.json"
}
}
],
"modified": "2026-10-16T09:45:30.951859735Z",
"provider": "osv",
"references": [
"https://hackerone.com/reports/1690000",
"https://security.netapp.com/advisory/ntap-20230113-0002/",
"https://www.debian.org/security/2023/dsa-5326",
"https://nvd.nist.gov/vuln/detail/CVE-2022-35255"
],
"provider_metadata": {
"cpes": [
"cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*",
"cpe:2.3:a:nodejs:node.js:*:*:*:*:lts:*:*:*"
],
"severity": "Critical"
}
},
"related_cves": [
{
"value": "CVE-2022-35255",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 338481,
"published_at": "2024-12-16T14:01:42.623+00:00"
}