Skip to content
Fencer Intel
medium 5.3

CVE-2021-23425 json

Regular Expression Denial of Service (ReDoS)

published 5y ago modified 4mo ago also GHSA-38fc-wpqx-33j7 , EUVD-2021-1960

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.9%
EPSS 1.9% chance of exploitation in 30 days, percentile 80%
public exploits
0
none known

Summary

All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.

Patch / fix

  • npm trim-off-newlines 1.0.3
  • trim-off-newlines_project trim-off-newlines 1.0.3
  • rhvm rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-engine rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-web-ui rhev manager 4.4 1.8.1-2.el8ev
  • ovirt-engine-setup rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-engine-tools rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-engine-backend rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-engine-restapi rhev manager 4.4 4.5.0.7-0.9.el8ev
  • ovirt-engine-dbscripts rhev manager 4.4 4.5.0.7-0.9.el8ev

red hat advisories RHSA-2022:4711

Is CVE-2021-23425 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2021-23425 updated cvss 0.0

nodejs-trim-off-newlines: ReDoS via string processing

  • Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 ovirt-engine-ui-extensions 1.3.3-1.el8ev
    fixed: vendor fix RHSA-2022:4711
  • Red Hat Directory Server 11 389-ds-base Red Hat Virtualization 4 ovirt-web-ui Red Hat RHEL-8-RHEV-S-4.4 - Red Hat Virtualization Engine 4.4 rhvm 4.5.0.7-0.9.el8ev, ovirt-web-ui 1.8.1-2.el8ev, apache-sshd 2.8.0-0.1.el8ev, ansible-runner 2.1.3-1.el8ev, engine-db-query 1.6.4-1.el8ev, ovirt-engine 4.5.0.7-0.9.el8ev, +32 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

1.93% chance of exploitation in the next 30 days, higher than 80% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • snyk.io https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850 referenced PoC, tagged "exploit" by a source, unverified
  • snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P
CNA 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P
GitHub 3.1 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected packages

ecosystem package affected fixed in
npm trim-off-newlines
<1.0.3
1.0.3

Affected products

  • n/a trim-off-newlines

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.