{"answers":{"affected":"2 open source packages ship an affected version, including generator-jhipster-entity-audit.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31119 exists.","fix":"Upgrade generator-jhipster-entity-audit to 5.9.1 or later.","what":"CVE-2025-31119 is a high-severity code injection vulnerability in generator-jhipster-entity-audit, published on 3 Apr 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-31119 and fix it if it is affected.\n\nWhat it is: CVE-2025-31119 is a high-severity code injection vulnerability in generator-jhipster-entity-audit, published on 3 Apr 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31119 exists.\n\nAffected packages and fixed versions:\n- generator-jhipster-entity-audit (npm): affected all versions; fixed in 5.9.1\n- generator-jhipster-entity-audit (npm): affected all versions; fixed in 5.9.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/CVE-2025-31119/ (Markdown: https://insights.sbomify.com/CVE-2025-31119/index.md)","id":"CVE-2025-31119","markdown":"https://insights.sbomify.com/CVE-2025-31119/index.md","name":"CVE-2025-31119","record":{"aliases":["GHSA-7rmp-3g9f-cvq8"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"JHipster entity audit module","requires_auth":"high_privilege","summary":"Attackers with classpath access can trigger remote code execution via unsafe reflection in the Javers audit framework.","user_interaction":"required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.7,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"description":"generator-jhipster-entity-audit is a JHipster module to enable entity audit and audit log page. Prior to 5.9.1, generator-jhipster-entity-audit allows unsafe reflection when having Javers selected as Entity Audit Framework. If an attacker manages to place some malicious classes into the classpath and also has access to these REST interface for calling the mentioned REST endpoints, using these lines of code can lead to unintended remote code execution. This vulnerability is fixed in 5.9.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"CWE-470 in generator-jhipster-entity-audit when having Javers selected as Entity Audit Framework","id":"CVE-2025-31119","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"NamelessMC Vulnerable to Cookie-Based View Count Manipulation","id":"CVE-2025-31120"},"packages":[{"ecosystem":"npm","fixed":["5.9.1"],"introduced":["0"],"last_affected":[],"package":"generator-jhipster-entity-audit","purl":null,"source":"GHSA-7rmp-3g9f-cvq8"},{"ecosystem":"npm","fixed":["5.9.1"],"introduced":["0"],"last_affected":[],"package":"generator-jhipster-entity-audit","purl":"pkg:npm/generator-jhipster-entity-audit","source":"GHSA-7rmp-3g9f-cvq8"}],"prev":{"headline":"NamelessMC Has Forum Reply Submission Time Limit Bypass","id":"CVE-2025-31118"},"products":["generator-jhipster-entity-audit"],"published":"2025-04-03","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-03","vendors":["jhipster"]},"summary":"Attackers with classpath access can trigger remote code execution via unsafe reflection in the Javers audit framework.","url":"https://insights.sbomify.com/CVE-2025-31119/"}