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

High 7.7 Published Updated

Attackers with classpath access can trigger remote code execution via unsafe reflection in the Javers audit framework.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-31119?

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.

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

Weakness: CWE-470

Which versions are affected by CVE-2025-31119?

2 open source packages ship an affected version, including generator-jhipster-entity-audit.

PackageAffectedFixed in
generator-jhipster-entity-audit npmAll versions5.9.1
generator-jhipster-entity-audit npmAll versions5.9.1

How do I fix CVE-2025-31119?

Upgrade generator-jhipster-entity-audit to 5.9.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-31119 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-31119 exists.

Sources

Also known as GHSA-7rmp-3g9f-cvq8.

Is CVE-2025-31119 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free