{"id":"CVE-2017-16028","aliases":["EUVD-2018-0518","GHSA-6g33-f262-xjp4"],"status":"published","title":"Cryptographically Weak PRNG in randomatic","description":"react-native-meteor-oauth is a library for Oauth2 login to a Meteor server in React Native. The oauth Random Token is generated using a non-cryptographically strong RNG (Math.random()).","severity":{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01329,"percentile":0.71217,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-330","CWE-338"],"published":"2018-06-04T19:00:00Z","modified":"2026-06-17T01:08:39Z","fixes":[{"ecosystem":"npm","package":"randomatic","fixed_in":["3.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"randomatic","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]},{"source":"osv","ecosystem":"npm","package":"randomatic","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.0"}]}]}],"products":[{"vendor":"hackerone","product":"react-native-meteor-oauth node module"},{"vendor":"randomatic_project","product":"randomatic"}],"references":[{"url":"https://github.com/tableflip/react-native-meteor-oauth/blob/a7eb738b74c469f5db20296b44b7cae4e2337435/src/meteor-oauth.js#L66","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nodesecurity.io/advisories/157","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16028","tags":["advisory"]},{"url":"https://github.com/jonschlinkert/randomatic/commit/4a526959b3a246ae8e4a82f9c182180907227fe1#diff-b9cfc7f2cdf78a7f4b91a753d10865a2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6g33-f262-xjp4","tags":["advisory"]},{"url":"https://www.npmjs.com/advisories/157","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16028","description":"react-native-meteor-oauth is a library for Oauth2 login to a Meteor server in React Native. The oauth Random Token is generated using a non-cryptographically strong RNG (Math.random()).","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T02:06:18.622Z","cwes":["CWE-330"],"updated_at":"2026-11-02T14:33:21.142987Z"}],"euvd":[{"id":"EUVD-2018-0518","description":"react-native-meteor-oauth is a library for Oauth2 login to a Meteor server in React Native. The oauth Random Token is generated using a non-cryptographically strong RNG (Math.random()).","status":"published","published":"2018-06-04T19:00:00Z","modified":"2024-09-17T02:06:18Z","updated_at":"2026-11-03T00:28:43.867146Z"}],"ghsa":[{"id":"GHSA-6g33-f262-xjp4","title":"Cryptographically Weak PRNG in randomatic","description":"Affected versions of `randomatic` generate random values using a cryptographically weak psuedo-random number generator. This may result in predictable values instead of random values as intended.\n\n\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.","status":"published","published":"2018-10-09T00:57:21Z","modified":"2023-09-08T20:56:30Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T14:37:03.287418Z"}],"nvd":[{"id":"CVE-2017-16028","description":"react-native-meteor-oauth is a library for Oauth2 login to a Meteor server in React Native. The oauth Random Token is generated using a non-cryptographically strong RNG (Math.random()).","status":"published","published":"2018-06-04T19:29:01.583Z","modified":"2026-06-17T01:08:39.95Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T14:04:17.638656Z"}],"osv":[{"id":"GHSA-6g33-f262-xjp4","title":"Cryptographically Weak PRNG in randomatic","description":"Affected versions of `randomatic` generate random values using a cryptographically weak psuedo-random number generator. This may result in predictable values instead of random values as intended.\n\n\n\n\n## Recommendation\n\nUpdate to version 3.0.0 or later.","status":"published","published":"2018-10-09T00:57:21Z","modified":"2023-11-08T03:59:00.496794Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T15:46:39.618611Z"}]}}
