GHSA-mc84-xr9p-938r: Generator jhipster High Severity Vulnerability That Affects Vulnerability

HIGH
CVSS 8.1
CWE-829 CWE-494
Published
Advisory Summary

GHSA-mc84-xr9p-938r is a HIGH (CVSS 8.1) high severity vulnerability that affects vulnerability (CWE-829: Inclusion of Functionality from Untrusted Control Sphere) affecting Generator jhipster libraries in the npm ecosystem. The issue involves high severity vulnerability that affects generator-jhipster. Remediation is available by upgrading affected packages to version 6.3.1.

GHSA-mc84-xr9p-938r at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-mc84-xr9p-938r
Severity HIGH
CVSS v3.1 Base Score 8.1
CWE Classification CWE-829: Inclusion of Functionality from Untrusted Control Sphere
Affected Product Generator jhipster
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
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-mc84-xr9p-938r

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.1
npm install generator-jhipster@6.3.1
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-mc84-xr9p-938r, 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.1), 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-829: Inclusion of Functionality from Untrusted Control Sphere, where the product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere. 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

## Generated code uses repository configuration that downloads over HTTP instead of HTTPS ### Impact Gradle users were using the http://repo.spring.io/plugins-release repositories in plain HTTP, and not HTTPS, so a man-in-the-middle attack was possible at build time. ### Patches Maven users should at least upgrade to 6.3.0 while Gradle users should update to 6.3.1. If you are not able to upgrade make sure not to use a Maven repository via `http` in your build file. ### Workarounds Replace all custom repository definitions in `build.gradle` or `pom.xml` with their `https` version. e.g. ```xml <repository> <id>oss.sonatype.org-snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> // <-- must be httpS <releases> <enabled>false</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> ``` ```gradle maven { url "https://repo.spring.io/plugins-release" } // <-- must be httpS ``` ### References * https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H * https://max.computer/blog/how-to-take-over-the-computer-of-any-java-or-clojure-or-scala-developer/ ### For more information If you have any questions or comments about this advisory: * Open an issue in [https://github.com/jhipster/generator-jhipster/issues](https://github.com/jhipster/generator-jhipster/issues)

GHSA-mc84-xr9p-938r Affected Generator jhipster Versions

1 component(s)
Fixed Versions:
6.3.1
Product / Package Ecosystem Affected Versions Fixed Version
generator-jhipster
npm
< 6.3.1
6.3.1

References

Frequently Asked Questions

What is GHSA-mc84-xr9p-938r?
GHSA-mc84-xr9p-938r is a security vulnerability in Generator jhipster involving High severity vulnerability that affects generator-jhipster under CWE-829: Inclusion of Functionality from Untrusted Control Sphere.
Which Generator jhipster versions are affected?
Affected versions include releases prior to 6.3.1 across affected packages: generator-jhipster.
What version fixes GHSA-mc84-xr9p-938r?
Upgrading to 6.3.1 (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.1. Upgrade your dependency to 6.3.1 or later.
What is the CVSS score of GHSA-mc84-xr9p-938r?
GHSA-mc84-xr9p-938r has a CVSS v3.1 base score of 8.1 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with GHSA-mc84-xr9p-938r?
GHSA-mc84-xr9p-938r is classified under CWE-829: Inclusion of Functionality from Untrusted Control Sphere (The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.).
How can I check npm dependencies for GHSA-mc84-xr9p-938r?
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-mc84-xr9p-938r",
  "modified" : "2021-09-15T18:50:22Z",
  "published" : "2019-09-23T18:31:05Z",
  "aliases" : [ ],
  "summary" : "High severity vulnerability that affects generator-jhipster",
  "details" : "## Generated code uses repository configuration that downloads over HTTP instead of HTTPS\n\n### Impact\nGradle users were using the http://repo.spring.io/plugins-release repositories in plain HTTP, and not HTTPS, so a man-in-the-middle attack was possible at build time.\n\n### Patches\n\nMaven users should at least upgrade to 6.3.0 while Gradle users should update to 6.3.1.\nIf you are not able to upgrade make sure not to use a Maven repository via `http` in your build file.\n\n### Workarounds\n\nReplace all custom repository definitions in `build.gradle` or `pom.xml` with their `https` version.\n\ne.g.\n\n```xml\n <repository>\n            <id>oss.sonatype.org-snapshot</id>\n            <url>https://oss.sonatype.org/content/repositories/snapshots</url> // <-- must be httpS\n            <releases>\n                <enabled>false</enabled>\n            </releases>\n            <snapshots>\n                <enabled>true</enabled>\n            </snapshots>\n</repository>\n```\n\n```gradle\nmaven { url \"https://repo.spring.io/plugins-release\" } // <-- must be httpS\n```\n\n### References\n* https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H\n* https://max.computer/blog/how-to-take-over-the-computer-of-any-java-or-clojure-or-scala-developer/\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [https://github.com/jhipster/generator-jhipster/issues](https://github.com/jhipster/generator-jhipster/issues)\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/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.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mc84-xr9p-938r"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-mc84-xr9p-938r"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jhipster/generator-jhipster"
  }, {
    "type" : "WEB",
    "url" : "https://snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-536074"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-494", "CWE-829" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:45:50Z",
    "nvd_published_at" : null
  }
}