CVE-2021-23425
5.3medium
Regular Expression Denial of Service (ReDoS)
- Severity
- 5.3medium CVSS:3.1 by snyk
- Exploit likelihood
- 1.93% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-38fc-wpqx-33j7
Description
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| trim-off-newlines | before unspecified | CVE List |
| trim-off-newlines (npm) | before 1.0.3 | GitHub Advisory Database |
| trim-off-newlines_project trim-off-newlines | before 1.0.3 | NVD |
All scores
| snyk | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.
NVD (es)
Todas las versiones del paquete trim-off-newlines son vulnerables a una Denegación de Servicio por Expresión Regular (ReDoS) por medio de procesamiento de cadenas.
References
| https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850 | exploit, third-party-advisory, web | |
| https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1567197 | exploit, third-party-advisory, web | |
| https://github.com/stevemao/trim-off-newlines/blob/master/index.js%23L6 | broken-link, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-23425 | advisory | |
| https://github.com/stevemao/trim-off-newlines/pull/3 | web | |
| https://github.com/stevemao/trim-off-newlines | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-23425 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-38fc-wpqx-33j7 changed 2025-01-14 | CC-BY-4.0 |
| NVD | CVE-2021-23425 changed 2026-06-17 | Public domain |