p PatchFirst

CVE-2022-35255

CVE-2022-35255

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.1 · Critical · EPSS 2.1% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • node.js

    Versions
    • ≥ 4.0, < 4.*: Affected (semver)
    • ≥ 5.0, < 5.*: Affected (semver)
    • ≥ 6.0, < 6.*: Affected (semver)
    • ≥ 7.0, < 7.*: Affected (semver)
    • ≥ 8.0, < 8.*: Affected (semver)
    • ≥ 9.0, < 9.*: Affected (semver)
    • ≥ 10.0, < 10.*: Affected (semver)
    • ≥ 11.0, < 11.*: Affected (semver)
    • ≥ 12.0, < 12.*: Affected (semver)
    • ≥ 13.0, < 13.*: Affected (semver)
    • ≥ 15.0, < 15.*: Affected (semver)
    • ≥ 17.0, < 17.*: Affected (semver)
    • ≥ 18.0, < 18.9.1: Affected (semver)

    Update to 18.9.1

  • nodejs Debian:12

    Affected ranges
    • ECOSYSTEM: < 18.10.0+dfsg-1

    Update to 18.10.0+dfsg-1

  • nodejs Debian:13

    Affected ranges
    • ECOSYSTEM: < 18.10.0+dfsg-1

    Update to 18.10.0+dfsg-1

  • nodejs Debian:14

    Affected ranges
    • ECOSYSTEM: < 18.10.0+dfsg-1

    Update to 18.10.0+dfsg-1

Original sources

Check your server →