# CVE-2019-16303: JHipster Kotlin using insecure source of randomness `RandomStringUtils` before v1.2.0

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 3.67%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2019-09-13T21:33:25.000Z
- Modified: 2026-09-10T03:48:45.080Z
- Also known as: GHSA-j3rh-8vwq-wh84, GHSA-mwp6-j9wf-968c
- Weaknesses: CWE-338
- Assigned by: mitre

## Description

A class generated by the Generator in JHipster before 6.3.0 and JHipster Kotlin through 1.1.0 produces code that uses an insecure source of randomness (apache.commons.lang3 RandomStringUtils). This allows an attacker (if able to obtain their own password reset URL) to compute the value for all other password resets for other accounts, thus allowing privilege escalation or account takeover.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- generator-jhipster-kotlin (npm): before 1.2.0
- generator-jhipster (npm): before 6.3.0
- jhipster jhipster: before 6.3.0
- jhipster jhipster_kotlin: up to 1.1.0

## Every score

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

## References

- <https://github.com/jhipster/generator-jhipster/issues/10401> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/jhipster/jhipster-kotlin/issues/183> (exploit, issue-tracking, third-party-advisory, web)
- <https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mwp6-j9wf-968c> (third-party-advisory, web)
- <https://github.com/jhipster/generator-jhipster/commit/88448b85fd3e8e49df103f0061359037c2c68ea7> (patch, third-party-advisory, web)
- <https://www.jhipster.tech/2019/09/13/jhipster-release-6.3.0.html> (release-notes, vendor-advisory, web)
- <https://lists.apache.org/thread.html/r6d243e7e3f25daeb242dacf3def411fba32a9388d3ff84918cb28ddd%40%3Cissues.commons.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rc87fa35a48b5d70b06af6fb81785ed82e82686eb83307aae6d250dc9%40%3Cissues.commons.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rc3f00f5d3d2ec0e2381a3b9096d5f5b4d46ec1587ee7e251a3dbb897%40%3Cissues.commons.apache.org%3E> (mailing-list)
- <https://github.com/jhipster/jhipster-kotlin/security/advisories/GHSA-j3rh-8vwq-wh84> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-16303> (advisory)
- <https://github.com/jhipster/jhipster-kotlin/commit/deec3587ef7721cf5de5b960d43e9b68beff6193> (web)
- <https://github.com/jhipster/generator-jhipster> (package)
- <https://lists.apache.org/thread.html/r6d243e7e3f25daeb242dacf3def411fba32a9388d3ff84918cb28ddd@%3Cissues.commons.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rc3f00f5d3d2ec0e2381a3b9096d5f5b4d46ec1587ee7e251a3dbb897@%3Cissues.commons.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rc87fa35a48b5d70b06af6fb81785ed82e82686eb83307aae6d250dc9@%3Cissues.commons.apache.org%3E> (web)
- <https://snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-466980> (web)
- <https://www.npmjs.com/advisories/1187> (web)
- <https://www.npmjs.com/advisories/1188> (web)
- <https://github.com/advisories/GHSA-j3rh-8vwq-wh84> (advisory)
- <https://github.com/advisories/GHSA-mwp6-j9wf-968c> (advisory)

## Sources

- CVE List: [CVE-2019-16303](https://www.cve.org/CVERecord?id=CVE-2019-16303), CVE Terms of Use, modified 2024-08-05
- GitHub Advisory Database: [GHSA-j3rh-8vwq-wh84](https://github.com/advisories/GHSA-j3rh-8vwq-wh84), CC-BY-4.0, modified 2026-07-08
- GitHub Advisory Database: [GHSA-mwp6-j9wf-968c](https://github.com/advisories/GHSA-mwp6-j9wf-968c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2019-16303](https://nvd.nist.gov/vuln/detail/CVE-2019-16303), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-16303 · Whole record: https://cve.day/CVE-2019-16303.json · Rebuilt by cve.day 2026-11-25T22:57:46.982Z
