Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1546357 - (CVE-2018-1107) CVE-2018-1107 nodejs-is-my-json-valid: ReDoS when validating JSON fields with email format
CVE-2018-1107 nodejs-is-my-json-valid: ReDoS when validating JSON fields with...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20180216,repor...
: Security
Depends On: 1546358 1598489 1569186 1598490
Blocks: 1546360
  Show dependency treegraph
 
Reported: 2018-02-16 15:56 EST by Pedro Sampaio
Modified: 2018-07-10 10:38 EDT (History)
23 users (show)

See Also:
Fixed In Version: is-myjson-valid 2.17.2, is-myjson-valid 1.4.1
Doc Type: If docs needed, set a value
Doc Text:
It was discovered that the is-my-json-valid JavaScript library used an inefficient regular expression to validate JSON fields defined to have email format. A specially crafted JSON file could cause it to consume an excessive amount of CPU time when validated.
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Pedro Sampaio 2018-02-16 15:56:37 EST
A flaw was discovered in is-myjson-valid before 1.4.1 and 2.17.2. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) attacks. It used a regular expression (/^\S+@\S+$/) in order to validate emails. This can cause an impact of about 10 seconds matching time for data 90K characters long.

Upstream patch:

https://github.com/mafintosh/is-my-json-valid/commit/b3051b277f7caa08cd2edc6f74f50aeda65d2976

Upstream issue:

https://github.com/mafintosh/is-my-json-valid/pull/159

External References:

https://snyk.io/vuln/npm:is-my-json-valid:20180214
Comment 1 Pedro Sampaio 2018-02-16 15:58:11 EST
Created nodejs-is-my-json-valid tracking bugs for this issue:

Affects: fedora-all [bug 1546358]
Comment 4 Jason Shepherd 2018-06-13 17:29:49 EDT
NodeJS is shipped in Openshift Enterprise 3.9 as ImageStreams. Those ImageStreams are the RH Software Collection images. Setting Openshift Enterprise 3 as not affected.

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