p PatchFirst

CVE-2021-33623

CVE-2021-33623

CVSS 7.5 · High · EPSS 2.9% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="node-trim-newlines"'
npm ls trim-newlines

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

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

The trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

Published
Updated

Fixes in distributions

  • RHSA-2022:5555 · Red Hat rhev manager 4.4 el8 ·
  • USN-5999-1 · Ubuntu 18.04 LTS, Ubuntu 20.04 LTS ·
  • DLA-3247-1 · Debian 10 ·

Stack: system · node

Affected products and versions

  • n/a

    Versions
    • n/a: Affected

    No fix published

  • node-trim-newlines Debian 12

    Affected ranges
    • ECOSYSTEM: < 3.0.0+~3.0.0-1

    Update to 3.0.0+~3.0.0-1

  • node-trim-newlines Debian 13

    Affected ranges
    • ECOSYSTEM: < 3.0.0+~3.0.0-1

    Update to 3.0.0+~3.0.0-1

  • node-trim-newlines Debian 14

    Affected ranges
    • ECOSYSTEM: < 3.0.0+~3.0.0-1

    Update to 3.0.0+~3.0.0-1

  • trim-newlines npm

    Affected ranges
    • SEMVER: < 3.0.1

    Update to 3.0.1

  • trim-newlines npm

    Versions
    • 4.0.0
    Affected ranges
    • SEMVER: ≥ 4.0.0, < 4.0.1

    Update to 4.0.1

  • node-trim-newlines Ubuntu 18.04 LTS

    Versions
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: < 1.0.0-1ubuntu0.18.04.1

    Update to 1.0.0-1ubuntu0.18.04.1

  • node-trim-newlines Ubuntu 20.04 LTS

    Versions
    • 1.0.0-1
    Affected ranges
    • ECOSYSTEM: < 1.0.0-1ubuntu0.20.04.1

    Update to 1.0.0-1ubuntu0.20.04.1

  • node-trim-newlines Ubuntu 24.04 LTS

    Versions
    • 3.0.0+~3.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-trim-newlines Ubuntu 25.10

    Versions
    • 3.0.0+~3.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-trim-newlines Ubuntu 26.10

    Versions
    • 3.0.0+~3.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • node-trim-newlines Ubuntu 26.04 LTS

    Versions
    • 3.0.0+~3.0.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →