{"id":"CVE-2025-31119","published":"2025-04-03T19:11:44Z","modified":"2025-04-03T19:45:22Z","title":"CWE-470 in generator-jhipster-entity-audit when having Javers selected as Entity Audit Framework","vendor":"jhipster","product":"generator-jhipster-entity-audit","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01116,"percentile":0.65684,"provenance":"source"},"cwes":[{"id":"CWE-470","name":"Use of Externally-Controlled Input to Select Classes or Code"}],"references":[{"url":"https://github.com/jhipster/generator-jhipster-entity-audit/security/advisories/GHSA-7rmp-3g9f-cvq8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jhipster/generator-jhipster-entity-audit/blob/e21e83135d10c77d92203c89cb0b0063914e8fe0/generators/spring-boot-javers/templates/src/main/java/_package_/web/rest/JaversEntityAuditResource.java.ejs#L88","tags":["x_refsource_MISC"]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":13.14},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"jhipster","affectedVersions":[{"vendor":"jhipster","product":"generator-jhipster-entity-audit","versions":["< 5.9.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-03T19:45:10.744704Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"generator-jhipster-entity-audit","vulnerableRanges":["<5.9.1"],"patched":["5.9.1"],"from":["GHSA-7rmp-3g9f-cvq8"],"provenance":"source"}],"summary":{"text":"The generator-jhipster-entity-audit module for JHipster contains an unsafe reflection flaw (CWE-470) that arises when Javers is selected as the Entity Audit Framework. An attacker who can place malicious classes on the application's classpath and can reach the module's REST endpoints could trigger unintended remote code execution, with the attack requiring high complexity, high privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:33:27Z"},"euvd":{"id":"EUVD-2025-9738","exploited":false,"provenance":"source"}}