CVE-2019-16303
JHipster Kotlin using insecure source of randomness `RandomStringUtils` before v1.2.0
Also known as GHSA-j3rh-8vwq-wh84, GHSA-mwp6-j9wf-968c
Mitigation
- Upgrade generator-jhipster-kotlin to 1.2.0 or later.
- Upgrade generator-jhipster to 6.3.0 or later.
Who should check
- Projects that depend on npm package generator-jhipster-kotlin (< 1.2.0)
- Projects that depend on npm package generator-jhipster (< 6.3.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- generator-jhipster-kotlin < 1.2.0; generator-jhipster < 6.3.0
- Fixed in
- 1.2.0, 6.3.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.8 (v3.1, NVD)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 3.67% chance of exploitation in 30 days (percentile 90, 2026-11-26)
- CWE
- CWE-338
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm generator-jhipster-kotlin | < 1.2.0 | 1.2.0 | osv |
| npm generator-jhipster | < 6.3.0 | 6.3.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2019-16303. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2019-16303.md Affected: generator-jhipster-kotlin < 1.2.0; generator-jhipster < 6.3.0 Fixed in: 1.2.0, 6.3.0 Steps: 1. Search this machine and project for generator-jhipster-kotlin (npm), generator-jhipster (npm), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mwp6-j9wf-968c
- https://www.jhipster.tech/2019/09/13/jhipster-release-6.3.0.html
- https://github.com/jhipster/jhipster-kotlin/security/advisories/GHSA-j3rh-8vwq-wh84
- https://nvd.nist.gov/vuln/detail/CVE-2019-16303
- https://github.com/advisories/GHSA-j3rh-8vwq-wh84
- https://github.com/advisories/GHSA-mwp6-j9wf-968c
Patches
Exploits and PoCs
Other
- https://lists.apache.org/thread.html/r6d243e7e3f25daeb242dacf3def411fba32a9388d3ff84918cb28ddd%40%3Cissues.commons.apache.org%3E
- https://lists.apache.org/thread.html/rc87fa35a48b5d70b06af6fb81785ed82e82686eb83307aae6d250dc9%40%3Cissues.commons.apache.org%3E
- https://lists.apache.org/thread.html/rc3f00f5d3d2ec0e2381a3b9096d5f5b4d46ec1587ee7e251a3dbb897%40%3Cissues.commons.apache.org%3E
- https://github.com/jhipster/generator-jhipster
- https://lists.apache.org/thread.html/r6d243e7e3f25daeb242dacf3def411fba32a9388d3ff84918cb28ddd@%3Cissues.commons.apache.org%3E
- https://lists.apache.org/thread.html/rc3f00f5d3d2ec0e2381a3b9096d5f5b4d46ec1587ee7e251a3dbb897@%3Cissues.commons.apache.org%3E
- https://lists.apache.org/thread.html/rc87fa35a48b5d70b06af6fb81785ed82e82686eb83307aae6d250dc9@%3Cissues.commons.apache.org%3E
- https://snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-466980
- https://www.npmjs.com/advisories/1187
- https://www.npmjs.com/advisories/1188
FAQ
Is CVE-2019-16303 being exploited?
There is no confirmed exploitation: CVE-2019-16303 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.67% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2019-16303?
Critical: CVSS 9.8 (v3.1, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2019-16303?
generator-jhipster-kotlin < 1.2.0; generator-jhipster < 6.3.0.
Is there a fix for CVE-2019-16303?
Yes. Fixed in 1.2.0, 6.3.0. Upgrade generator-jhipster-kotlin to 1.2.0 or later. Upgrade generator-jhipster to 6.3.0 or later.
How do I check if I'm affected by CVE-2019-16303?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.