Bug 1422009

Summary: nodejs-ws: Use of cryptographically insecure Math.random
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, nodejs-sig, tdawson, tiwillia
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-ws 1.1.2, nodejs-ws 2.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-08 03:07:37 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: 1422010, 1422011, 1422012    
Bug Blocks:    

Description Andrej Nemec 2017-02-14 10:11:05 UTC
A vulnerability was found in the nodejs ws package. 

Affected versions of the package use the cryptographically insecure Math.random which can produce predictable values and should not be used in security-sensitive context.

References:

https://snyk.io/vuln/npm:ws:20160920
https://medium.com/@betable/tifu-by-using-math-random-f1c308c4fd9d#.t00x80pbh

Upstream bug:

https://github.com/websockets/ws/pull/832

Upstream patch:

https://github.com/websockets/ws/commit/7253f06f5432c76f3e82e2c055fcea08b612d8b2

Comment 1 Andrej Nemec 2017-02-14 10:12:05 UTC
Created nodejs-ws tracking bugs for this issue:

Affects: epel-6 [bug 1422010]
Affects: epel-7 [bug 1422011]
Affects: fedora-all [bug 1422012]