GHSA-mwp6-j9wf-968c: Generator jhipster Critical Severity Vulnerability That Affects Vulnerability

CRITICAL
CVSS 9.8
CWE-338
Published
Advisory Summary

GHSA-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

CVE Identifier N/A
GHSA Identifier GHSA-mwp6-j9wf-968c
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
Affected Product Generator jhipster
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

generator-jhipster fixed: 6.3.0
npm install generator-jhipster@6.3.0
Verify Direct and Transitive Dependencies

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

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) Generated applications must be manually patched, following instructions in the release notes: https://www.jhipster.tech/2019/09/13/jhipster-release-6.3.0.html

GHSA-mwp6-j9wf-968c Affected Generator jhipster Versions

1 component(s)
Fixed Versions:
6.3.0
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?
GHSA-mwp6-j9wf-968c is a security vulnerability in Generator jhipster involving Critical severity vulnerability that affects generator-jhipster under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG).
Which Generator jhipster versions are affected?
Affected versions include releases prior to 6.3.0 across affected packages: generator-jhipster.
What version fixes GHSA-mwp6-j9wf-968c?
Upgrading to 6.3.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is generator-jhipster affected?
Yes, generator-jhipster is affected in releases prior to 6.3.0. Upgrade your dependency to 6.3.0 or later.
What is the CVSS score of GHSA-mwp6-j9wf-968c?
GHSA-mwp6-j9wf-968c has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-mwp6-j9wf-968c?
GHSA-mwp6-j9wf-968c is classified under CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) (The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.).
How can I check npm dependencies for GHSA-mwp6-j9wf-968c?
Run the dependency tree command: 'npm ls generator-jhipster'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}