# CVE-2025-31119: CWE-470 in generator-jhipster-entity-audit when having Javers selected as Entity Audit Framework

- Severity: High 7.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 46% of CVEs (2026-12-01)
- Published: 2025-04-03T19:11:44.091Z
- Modified: 2026-06-17T09:09:53.370Z
- Also known as: GHSA-7rmp-3g9f-cvq8
- Weaknesses: CWE-470
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- jhipster generator-jhipster-entity-audit: < 5.9.1
- generator-jhipster-entity-audit (npm): before 5.9.1

## Every score

- GitHub_M: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.6 High `CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://github.com/jhipster/generator-jhipster-entity-audit/security/advisories/GHSA-7rmp-3g9f-cvq8> (web)
- <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> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31119> (advisory)
- <https://github.com/jhipster/generator-jhipster-entity-audit> (package)

## Sources

- CVE List: [CVE-2025-31119](https://www.cve.org/CVERecord?id=CVE-2025-31119), CVE Terms of Use, modified 2025-04-03
- GitHub Advisory Database: [GHSA-7rmp-3g9f-cvq8](https://github.com/advisories/GHSA-7rmp-3g9f-cvq8), CC-BY-4.0, modified 2025-04-04
- NVD: [CVE-2025-31119](https://nvd.nist.gov/vuln/detail/CVE-2025-31119), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31119 · Whole record: https://cve.day/CVE-2025-31119.json · Rebuilt by cve.day 2026-11-25T22:58:56.021Z
