# CVE-2022-30782: Openmoney API through 2020-06-29 uses the JavaScript Math.random function, which does not provide cryptographically secure random numbers.

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.25%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-05-16T05:25:22.000Z
- Modified: 2026-06-17T04:44:17.160Z
- Weaknesses: CWE-330
- Assigned by: mitre

## Description

Openmoney API through 2020-06-29 uses the JavaScript Math.random function, which does not provide cryptographically secure random numbers.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- openmoney_api_project openmoney_api: up to 2020-06-29

## Every score

- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/openmoney/openmoney-api/blob/1b836e5826dfd59145223a8a48e6c45ddb325762/api/helpers/util.helper.js#L6> (patch, third-party-advisory)
- <https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-30782](https://www.cve.org/CVERecord?id=CVE-2022-30782), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-30782](https://nvd.nist.gov/vuln/detail/CVE-2022-30782), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-30782 · Whole record: https://cve.day/CVE-2022-30782.json · Rebuilt by cve.day 2026-11-25T22:58:11.722Z
