Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') Affecting generator-jhipster-entity-audit package, versions <5.9.1


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.21% (45th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-GENERATORJHIPSTERENTITYAUDIT-9718834
  • published16 Apr 2025
  • disclosed4 Apr 2025
  • creditOmarHawk

Introduced: 4 Apr 2025

NewCVE-2025-31119  (opens in a new tab)
CWE-470  (opens in a new tab)

How to fix?

Upgrade generator-jhipster-entity-audit to version 5.9.1 or higher.

Overview

generator-jhipster-entity-audit is a JHipster module to enable entity audit and audit log page

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') via the entityType and qualifiedName parameters in REST endpoints. An attacker can execute arbitrary code by passing malicious class names that lead to unintended class loading.

Note:

This is only exploitable if the attacker manages to place some malicious classes into the classpath and also has access to these REST interface for calling the mentioned REST endpoints.

References

CVSS Base Scores

version 4.0
version 3.1