{"id":"GHSA-mc84-xr9p-938r","aliases":["GHSA-mc84-xr9p-938r"],"related":[],"kind":"vulnerability","state":"published","title":"High severity vulnerability that affects generator-jhipster","summary":"## 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)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## 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)","format":"markdown","source":"ghsa"}],"published":"2019-09-23T18:31:05.000Z","modified":"2021-09-15T18:50:22.000Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"}],"cwes":["CWE-494","CWE-829"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.3.1"}],"ecosystem":"npm","package":"generator-jhipster","purl":"pkg:npm/generator-jhipster","source":"ghsa"}],"references":[{"url":"https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mc84-xr9p-938r","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-mc84-xr9p-938r","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jhipster/generator-jhipster","tags":["web"],"sources":["ghsa"]},{"url":"https://snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-536074","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mc84-xr9p-938r","url":"https://github.com/advisories/GHSA-mc84-xr9p-938r","licence":"CC-BY-4.0","modified":"2021-09-15T18:50:22.000Z"}],"updatedAt":"2026-11-25T22:56:45.932Z"}