Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. generator-jhipster
  4. ›
  5. GMS-2019-125

GMS-2019-125: High severity vulnerability that affects generator-jhipster

September 23, 2019 (updated September 15, 2021)

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.

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

References

  • github.com/advisories/GHSA-mc84-xr9p-938r
  • github.com/jhipster/generator-jhipster/security/advisories/GHSA-mc84-xr9p-938r
  • snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-536074

Code Behaviors & Features

Detect and mitigate GMS-2019-125 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.3.1

Fixed versions

  • 6.3.1

Solution

Upgrade to version 6.3.1 or above.

Source file

npm/generator-jhipster/GMS-2019-125.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:09 +0000.