Cyber Resilience

CVE-2025-31119

Published
03 April 2025
Modified
15 April 2026
CVSS Score v3.1 7.6
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
EPSS Score 0.0049 40th percentile
Risk Priority 58 floored blend · peak EPSS

Summary

CVE-2025-31119 is a high-severity Unsafe Reflection (CWE-470) vulnerability. Its CVSS base score is 7.6 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Reflective Code Loading (T1620); ranked at the 40th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

generator-jhipster-entity-audit is a JHipster module that adds entity audit support and an audit log page. Prior to version 5.9.1, the module contains an unsafe reflection flaw when the Javers Entity Audit Framework is selected. The issue stems from code paths in JaversEntityAuditResource that accept attacker-controlled input to resolve and invoke classes, enabling remote code execution if malicious classes are present on the classpath.

An attacker must first place malicious classes on the classpath and then obtain access to the exposed REST endpoints. With those conditions met, crafted requests to the affected endpoints can trigger arbitrary class loading and method invocation, resulting in full remote code execution under the privileges of the application process.

The project security advisory GHSA-7rmp-3g9f-cvq8 and the accompanying patch release state that the vulnerability is fixed in generator-jhipster-entity-audit 5.9.1. Users are advised to upgrade immediately and to verify that only trusted classes reside on the application classpath.

EPSS for the CVE rose from a low baseline to a recorded peak of 0.0375, indicating that exploitation interest increased after public disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1620 Reflective Code Loading Stealth
Adversaries may reflectively load code into a process in order to conceal the execution of malicious payloads.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-25498Shared CWE-470
CVE-2026-8178Shared CWE-470
CVE-2025-12967Shared CWE-470
CVE-2026-41175Shared CWE-470
CVE-2026-23923Shared CWE-470
CVE-2025-61925Shared CWE-470
CVE-2026-8400Shared CWE-470
CVE-2026-13181Shared CWE-470
CVE-2024-4990Shared CWE-470
CVE-2026-44174Shared CWE-470

Affected Assets

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

Input validation directly stops externally supplied class or method names from selecting improper code via reflection.

Enforces authorization checks on the code or classes ultimately invoked, blocking unauthorized selections even if reflection is used.

Limits privileges of any code reached through unsafe reflection, reducing blast radius without stopping the selection itself.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly avoid introducing externally controlled class selection via reflection.

ID.RA-01 partial match
prevents

Vulnerability identification processes can discover unsafe reflection during code review or scanning.

PR.PS-05 partial match
prevents

Preventing execution of unauthorized code can block exploitation of unsafe reflection at runtime.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Secure coding standards directly forbid unsafe reflection and require whitelisting or static alternatives.

finds

Security testing can detect and block unsafe reflection patterns before release.

prevents

Secure development lifecycle mandates input validation and design reviews that reduce unsafe reflection risks.

prevents

Application security requirements can explicitly prohibit or constrain reflection based on untrusted input.

prevents

Secure architecture principles discourage dynamic class loading from external data sources.

none

Access restrictions limit who can supply the malicious input but do not address the reflection flaw itself.

References