{"answers":{"affected":"2 open source packages ship an affected version, including generator-jhipster.","exploited":"There is no known exploitation of GHSA-mc84-xr9p-938r in the wild and no public exploit code.","fix":"Upgrade generator-jhipster to 6.3.1 or later.","what":"GHSA-mc84-xr9p-938r is a vulnerability in generator-jhipster, published on 23 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-mc84-xr9p-938r and fix it if it is affected.\n\nWhat it is: GHSA-mc84-xr9p-938r is a vulnerability in generator-jhipster, published on 23 Sep 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-mc84-xr9p-938r in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- generator-jhipster (npm): affected all versions; fixed in 6.3.1\n- generator-jhipster (npm): affected all versions; fixed in 6.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-mc84-xr9p-938r/ (Markdown: https://insights.sbomify.com/GHSA-mc84-xr9p-938r/index.md)","id":"GHSA-mc84-xr9p-938r","markdown":"https://insights.sbomify.com/GHSA-mc84-xr9p-938r/index.md","name":"GHSA-mc84-xr9p-938r","record":{"aliases":[],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"JHipster code generator","requires_auth":"none","summary":"Generated build files use HTTP for repositories, allowing man-in-the-middle attacks to inject malicious code during build.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"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)","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"High severity vulnerability that affects generator-jhipster","id":"GHSA-mc84-xr9p-938r","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":"supply_chain","year":"2019"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["6.3.1"],"introduced":["0"],"last_affected":[],"package":"generator-jhipster","purl":null,"source":"GHSA-mc84-xr9p-938r"},{"ecosystem":"npm","fixed":["6.3.1"],"introduced":["0"],"last_affected":[],"package":"generator-jhipster","purl":"pkg:npm/generator-jhipster","source":"GHSA-mc84-xr9p-938r"}],"products":null,"published":"2019-09-23","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Generated build files use HTTP for repositories, allowing man-in-the-middle attacks to inject malicious code during build.","url":"https://insights.sbomify.com/GHSA-mc84-xr9p-938r/"}