GHSA-mwp6-j9wf-968c: Generator jhipster Critical Severity Vulnerability That Affects Vulnerability
CRITICALGHSA-mwp6-j9wf-968c is a CRITICAL (CVSS 9.8) critical severity vulnerability that affects vulnerability (CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)) affecting Generator jhipster libraries in the npm ecosystem. The issue involves critical severity vulnerability that affects generator-jhipster. Remediation is available by upgrading affected packages to version 6.3.0.
GHSA-mwp6-j9wf-968c at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix GHSA-mwp6-j9wf-968c
To remediate this vulnerability, upgrade all affected Generator jhipster dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install generator-jhipster@6.3.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls generator-jhipster
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-mwp6-j9wf-968c, inspect your project dependencies using npm:
npm ls generator-jhipster
Analyze the terminal output to locate any version of Generator jhipster in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.3.0), your application is affected.
Note: The npm ls generator-jhipster command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), where the product uses a pseudo-random number generator (prng) in a security context, but the prng's algorithm is not cryptographically strong. In Generator jhipster, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-mwp6-j9wf-968c Affected Generator jhipster Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
generator-jhipster
|
npm |
< 6.3.0
|
6.3.0
|
References
Frequently Asked Questions
What is GHSA-mwp6-j9wf-968c?
Which Generator jhipster versions are affected?
What version fixes GHSA-mwp6-j9wf-968c?
Is generator-jhipster affected?
What is the CVSS score of GHSA-mwp6-j9wf-968c?
What CWE is associated with GHSA-mwp6-j9wf-968c?
How can I check npm dependencies for GHSA-mwp6-j9wf-968c?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mwp6-j9wf-968c",
"modified" : "2021-10-11T21:10:33Z",
"published" : "2019-09-13T21:33:25Z",
"withdrawn" : "2020-06-26T16:40:47Z",
"aliases" : [ ],
"summary" : "Critical severity vulnerability that affects generator-jhipster",
"details" : "Account takeover and privilege escalation is possible in applications generated by generator-jhipster before 6.3.0. This is due to a vulnerability in the generated java classes: CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)\n\nGenerated applications must be manually patched, following instructions in the release notes: https://www.jhipster.tech/2019/09/13/jhipster-release-6.3.0.html\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "generator-jhipster"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "6.3.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mwp6-j9wf-968c"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-j3rh-8vwq-wh84"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-mwp6-j9wf-968c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/jhipster/generator-jhipster"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-338" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:47:33Z",
"nvd_published_at" : null
}
}