{"id":"GHSA-mc84-xr9p-938r","aliases":[],"status":"published","title":"High severity vulnerability that affects generator-jhipster","description":"## 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 \u003crepository\u003e\n            \u003cid\u003eoss.sonatype.org-snapshot\u003c/id\u003e\n            \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e // \u003c-- must be httpS\n            \u003creleases\u003e\n                \u003cenabled\u003efalse\u003c/enabled\u003e\n            \u003c/releases\u003e\n            \u003csnapshots\u003e\n                \u003cenabled\u003etrue\u003c/enabled\u003e\n            \u003c/snapshots\u003e\n\u003c/repository\u003e\n```\n\n```gradle\nmaven { url \"https://repo.spring.io/plugins-release\" } // \u003c-- 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)","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","from":"ghsa"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-494","CWE-829"],"published":"2019-09-23T18:31:05Z","modified":"2023-01-09T05:03:09Z","fixes":[{"ecosystem":"npm","package":"generator-jhipster","fixed_in":["6.3.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"generator-jhipster","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.3.1"}]}]},{"source":"osv","ecosystem":"npm","package":"generator-jhipster","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.3.1"}]}]}],"references":[{"url":"https://github.com/jhipster/generator-jhipster/security/advisories/GHSA-mc84-xr9p-938r","tags":["web"]},{"url":"https://github.com/advisories/GHSA-mc84-xr9p-938r","tags":["advisory"]},{"url":"https://snyk.io/vuln/SNYK-JS-GENERATORJHIPSTER-536074","tags":["web"]},{"url":"https://github.com/jhipster/generator-jhipster","tags":["web"]}],"sources":{"ghsa":[{"id":"GHSA-mc84-xr9p-938r","title":"High severity vulnerability that affects generator-jhipster","description":"## 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 \u003crepository\u003e\n            \u003cid\u003eoss.sonatype.org-snapshot\u003c/id\u003e\n            \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e // \u003c-- must be httpS\n            \u003creleases\u003e\n                \u003cenabled\u003efalse\u003c/enabled\u003e\n            \u003c/releases\u003e\n            \u003csnapshots\u003e\n                \u003cenabled\u003etrue\u003c/enabled\u003e\n            \u003c/snapshots\u003e\n\u003c/repository\u003e\n```\n\n```gradle\nmaven { url \"https://repo.spring.io/plugins-release\" } // \u003c-- 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","status":"published","published":"2019-09-23T18:31:05Z","modified":"2023-01-09T05:03:09Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-494","CWE-829"],"updated_at":"2026-11-02T14:36:04.396827Z"}],"osv":[{"id":"GHSA-mc84-xr9p-938r","title":"High severity vulnerability that affects generator-jhipster","description":"## 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 \u003crepository\u003e\n            \u003cid\u003eoss.sonatype.org-snapshot\u003c/id\u003e\n            \u003curl\u003ehttps://oss.sonatype.org/content/repositories/snapshots\u003c/url\u003e // \u003c-- must be httpS\n            \u003creleases\u003e\n                \u003cenabled\u003efalse\u003c/enabled\u003e\n            \u003c/releases\u003e\n            \u003csnapshots\u003e\n                \u003cenabled\u003etrue\u003c/enabled\u003e\n            \u003c/snapshots\u003e\n\u003c/repository\u003e\n```\n\n```gradle\nmaven { url \"https://repo.spring.io/plugins-release\" } // \u003c-- 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","status":"published","published":"2019-09-23T18:31:05Z","modified":"2021-09-15T18:50:22Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-494","CWE-829"],"updated_at":"2026-11-02T15:46:51.811331Z"}]}}
