Bug 1891860 (CVE-2020-7753)

Summary: CVE-2020-7753 nodejs-trim: Regular Expression Denial of Service (ReDoS) in trim function
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jcantril, jsmith.fedora, periklis
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: trim 0.0.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the npm library trim where a specifically crafted input can cause a regular expression to take an abnormal amount of time to compute. All versions of package trim are vulnerable to Regular Expression Denial of Service (ReDoS) [DNP] via trim().
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 20:21:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1891863    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2020-10-27 14:23:03 UTC
All versions of package trim are vulnerable to Regular Expression Denial of Service (ReDoS) [DNP] via trim().

References:
https://github.com/component/trim/blob/master/index.js%23L6
https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1022132
https://snyk.io/vuln/SNYK-JS-TRIM-1017038

Comment 1 Guilherme de Almeida Suckevicz 2020-10-27 14:25:22 UTC
Created nodejs-trim tracking bugs for this issue:

Affects: fedora-all [bug 1891863]

Comment 2 Product Security DevOps Team 2020-10-27 20:21:57 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.