CVE-2021-23425
Regular Expression Denial of Service (ReDoS)
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.3
Regular Expression Denial of Service (ReDoS)
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
CVE-2021-23425- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P - Updated
- 2026-11-02
EUVDEUVD-2021-1960
5.3
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
EUVD-2021-1960- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-38fc-wpqx-33j7
5.3
Uncontrolled Resource Consumption in trim-off-newlines
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
GHSA-38fc-wpqx-33j7- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
NVD
5.3
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
CVE-2021-23425- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:N/A:P - Updated
- 2026-11-02
OSV
5.3
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
CVE-2021-23425- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVGHSA-38fc-wpqx-33j7
5.3
Uncontrolled Resource Consumption in trim-off-newlines
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
- Record
GHSA-38fc-wpqx-33j7- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVRHSA-2022:4711
7.5
Red Hat Security Advisory: RHV Manager (ovirt-engine) [ovirt-4.5.0] security update
- Record
RHSA-2022:4711- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
trim-off-newlinesnpm |
before 1.0.3 | 1.0.3 |
ovirt-engine-ui-extensionsRed Hat:rhev_manager:4.4:el8 |
before 0:1.3.3-1.el8ev | 0:1.3.3-1.el8ev |
ovirt-web-uiRed Hat:rhev_manager:4.4:el8 |
before 0:1.8.1-2.el8ev | 0:1.8.1-2.el8ev |
ovirt-engineRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-backendRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-dbscriptsRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-health-check-bundlerRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-restapiRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setupRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-baseRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ovirt-engine-setup-plugin-cinderlibRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-plugin-imageioRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-plugin-ovirt-engineRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-plugin-ovirt-engine-commonRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-plugin-vmconsole-proxy-helperRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-setup-plugin-websocket-proxyRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-toolsRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-tools-backupRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-vmconsole-proxy-helperRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-webadmin-portalRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
ovirt-engine-websocket-proxyRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
python3-ovirt-engine-libRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
rhvmRed Hat:rhev_manager:4.4:el8 |
before 0:4.5.0.7-0.9.el8ev | 0:4.5.0.7-0.9.el8ev |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-23425 is a medium vulnerability (CVSS 5.3) in Trim-off-newlines Project Trim-off-newlines, published August 18, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.93%, the 80th percentile. Fixed in trim-off-newlines 1.0.3.
References
snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850
snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197
github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6
nvd.nist.gov/vuln/detail/CVE-2021-23425
github.com/stevemao/trim-off-newlines/pull/3
github.com/advisories/GHSA-38fc-wpqx-33j7
Show 120 moreShow less
github.com/stevemao/trim-off-newlines
access.redhat.com/errata/RHSA-2022:4711
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/technical_notes
bugzilla.redhat.com/show_bug.cgi?id=655153
bugzilla.redhat.com/show_bug.cgi?id=977778
bugzilla.redhat.com/show_bug.cgi?id=1624015
bugzilla.redhat.com/show_bug.cgi?id=1648985
bugzilla.redhat.com/show_bug.cgi?id=1667517
bugzilla.redhat.com/show_bug.cgi?id=1687845
bugzilla.redhat.com/show_bug.cgi?id=1781241
bugzilla.redhat.com/show_bug.cgi?id=1782056
bugzilla.redhat.com/show_bug.cgi?id=1849169
bugzilla.redhat.com/show_bug.cgi?id=1878930
bugzilla.redhat.com/show_bug.cgi?id=1922977
bugzilla.redhat.com/show_bug.cgi?id=1926625
bugzilla.redhat.com/show_bug.cgi?id=1927985
bugzilla.redhat.com/show_bug.cgi?id=1944290
bugzilla.redhat.com/show_bug.cgi?id=1944834
bugzilla.redhat.com/show_bug.cgi?id=1956295
bugzilla.redhat.com/show_bug.cgi?id=1959186
bugzilla.redhat.com/show_bug.cgi?id=1964208
bugzilla.redhat.com/show_bug.cgi?id=1964461
bugzilla.redhat.com/show_bug.cgi?id=1971622
bugzilla.redhat.com/show_bug.cgi?id=1974741
bugzilla.redhat.com/show_bug.cgi?id=1979441
bugzilla.redhat.com/show_bug.cgi?id=1979797
bugzilla.redhat.com/show_bug.cgi?id=1980192
bugzilla.redhat.com/show_bug.cgi?id=1986726
bugzilla.redhat.com/show_bug.cgi?id=1986834
bugzilla.redhat.com/show_bug.cgi?id=1987121
bugzilla.redhat.com/show_bug.cgi?id=1988496
bugzilla.redhat.com/show_bug.cgi?id=1990462
bugzilla.redhat.com/show_bug.cgi?id=1991240
bugzilla.redhat.com/show_bug.cgi?id=1995793
bugzilla.redhat.com/show_bug.cgi?id=1996123
bugzilla.redhat.com/show_bug.cgi?id=1998255
bugzilla.redhat.com/show_bug.cgi?id=1999698
bugzilla.redhat.com/show_bug.cgi?id=2000031
bugzilla.redhat.com/show_bug.cgi?id=2002283
bugzilla.redhat.com/show_bug.cgi?id=2003883
bugzilla.redhat.com/show_bug.cgi?id=2003996
bugzilla.redhat.com/show_bug.cgi?id=2006602
bugzilla.redhat.com/show_bug.cgi?id=2006745
bugzilla.redhat.com/show_bug.cgi?id=2007384
bugzilla.redhat.com/show_bug.cgi?id=2007557
bugzilla.redhat.com/show_bug.cgi?id=2008798
bugzilla.redhat.com/show_bug.cgi?id=2010203
bugzilla.redhat.com/show_bug.cgi?id=2010903
bugzilla.redhat.com/show_bug.cgi?id=2013928
bugzilla.redhat.com/show_bug.cgi?id=2014888
bugzilla.redhat.com/show_bug.cgi?id=2015796
bugzilla.redhat.com/show_bug.cgi?id=2019144
bugzilla.redhat.com/show_bug.cgi?id=2019148
bugzilla.redhat.com/show_bug.cgi?id=2019153
bugzilla.redhat.com/show_bug.cgi?id=2021217
bugzilla.redhat.com/show_bug.cgi?id=2023250
bugzilla.redhat.com/show_bug.cgi?id=2023786
bugzilla.redhat.com/show_bug.cgi?id=2024202
bugzilla.redhat.com/show_bug.cgi?id=2025936
bugzilla.redhat.com/show_bug.cgi?id=2030596
bugzilla.redhat.com/show_bug.cgi?id=2030663
bugzilla.redhat.com/show_bug.cgi?id=2031027
bugzilla.redhat.com/show_bug.cgi?id=2035051
bugzilla.redhat.com/show_bug.cgi?id=2037115
bugzilla.redhat.com/show_bug.cgi?id=2037121
bugzilla.redhat.com/show_bug.cgi?id=2040361
bugzilla.redhat.com/show_bug.cgi?id=2040402
bugzilla.redhat.com/show_bug.cgi?id=2040474
bugzilla.redhat.com/show_bug.cgi?id=2041544
bugzilla.redhat.com/show_bug.cgi?id=2043146
bugzilla.redhat.com/show_bug.cgi?id=2044273
bugzilla.redhat.com/show_bug.cgi?id=2048546
bugzilla.redhat.com/show_bug.cgi?id=2050566
bugzilla.redhat.com/show_bug.cgi?id=2050614
bugzilla.redhat.com/show_bug.cgi?id=2051857
bugzilla.redhat.com/show_bug.cgi?id=2052557
bugzilla.redhat.com/show_bug.cgi?id=2052690
bugzilla.redhat.com/show_bug.cgi?id=2054756
bugzilla.redhat.com/show_bug.cgi?id=2055136
bugzilla.redhat.com/show_bug.cgi?id=2056021
bugzilla.redhat.com/show_bug.cgi?id=2056052
bugzilla.redhat.com/show_bug.cgi?id=2056126
bugzilla.redhat.com/show_bug.cgi?id=2058264
bugzilla.redhat.com/show_bug.cgi?id=2059521
bugzilla.redhat.com/show_bug.cgi?id=2059877
bugzilla.redhat.com/show_bug.cgi?id=2061904
bugzilla.redhat.com/show_bug.cgi?id=2065052
bugzilla.redhat.com/show_bug.cgi?id=2066084
bugzilla.redhat.com/show_bug.cgi?id=2066283
bugzilla.redhat.com/show_bug.cgi?id=2069972
bugzilla.redhat.com/show_bug.cgi?id=2070156
bugzilla.redhat.com/show_bug.cgi?id=2071468
bugzilla.redhat.com/show_bug.cgi?id=2072637
bugzilla.redhat.com/show_bug.cgi?id=2072639
bugzilla.redhat.com/show_bug.cgi?id=2072641
bugzilla.redhat.com/show_bug.cgi?id=2072642
bugzilla.redhat.com/show_bug.cgi?id=2072645
bugzilla.redhat.com/show_bug.cgi?id=2072646
bugzilla.redhat.com/show_bug.cgi?id=2075352
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_4711.json
access.redhat.com/security/cve/CVE-2021-3807
cve.org/CVERecord?id=CVE-2021-3807
nvd.nist.gov/vuln/detail/CVE-2021-3807
huntr.dev/bounties/5b3cf33b-ede0-4398-9974-800876dfd994
access.redhat.com/security/cve/CVE-2021-23425
cve.org/CVERecord?id=CVE-2021-23425
access.redhat.com/security/cve/CVE-2021-33502
cve.org/CVERecord?id=CVE-2021-33502
nvd.nist.gov/vuln/detail/CVE-2021-33502
snyk.io/vuln/SNYK-JS-NORMALIZEURL-1296539
access.redhat.com/security/cve/CVE-2021-41182
cve.org/CVERecord?id=CVE-2021-41182
nvd.nist.gov/vuln/detail/CVE-2021-41182
access.redhat.com/security/cve/CVE-2021-41183
cve.org/CVERecord?id=CVE-2021-41183
nvd.nist.gov/vuln/detail/CVE-2021-41183
access.redhat.com/security/cve/CVE-2021-41184
cve.org/CVERecord?id=CVE-2021-41184
nvd.nist.gov/vuln/detail/CVE-2021-41184