Bug 1995793 (CVE-2021-23425) - CVE-2021-23425 nodejs-trim-off-newlines: ReDoS via string processing
Summary: CVE-2021-23425 nodejs-trim-off-newlines: ReDoS via string processing
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2021-23425
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1995794 1996701 1996702 1997713
Blocks: 1995796
TreeView+ depends on / blocked
 
Reported: 2021-08-19 18:51 UTC by Guilherme de Almeida Suckevicz
Modified: 2022-05-26 16:22 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in nodejs-trim-off-newlines. All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing. The highest threat from this vulnerability is to system availability.
Clone Of:
Environment:
Last Closed: 2021-10-28 09:03:45 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:4711 0 None None None 2022-05-26 16:22:11 UTC

Description Guilherme de Almeida Suckevicz 2021-08-19 18:51:02 UTC
All versions of package trim-off-newlines are vulnerable to Regular Expression Denial of Service (ReDoS) via string processing.

Reference:
https://snyk.io/vuln/SNYK-JS-TRIMOFFNEWLINES-1296850

Comment 1 Guilherme de Almeida Suckevicz 2021-08-19 18:51:16 UTC
Created nodejs-trim-off-newlines tracking bugs for this issue:

Affects: fedora-33 [bug 1995794]

Comment 6 Przemyslaw Roguski 2021-08-23 14:12:27 UTC
The affected code is:
https://github.com/stevemao/trim-off-newlines/blob/master/index.js#L6

there is no fix yet on the upstream side

Comment 7 juneau 2021-08-24 14:54:56 UTC
Marking hosted services 'notaffected.'
Packages present in nodejs package-lock.json but no references in code; appears this vulnerability is not exposed.

Comment 9 errata-xmlrpc 2022-05-26 16:22:08 UTC
This issue has been addressed in the following products:

  Red Hat Virtualization Engine 4.4

Via RHSA-2022:4711 https://access.redhat.com/errata/RHSA-2022:4711


Note You need to log in before you can comment on or make changes to this bug.