Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-107375 Overview
CVE-2026-107375 is a SQL injection vulnerability [CWE-89] in JHipster, a development platform used to generate web applications and microservice architectures. Reactive applications generated with Spring WebFlux, Spring Data R2DBC, and a SQL database pass the attacker-controlled sort request parameter from paginated entity-list endpoints directly into createOrderByFields. The generated code renders these properties into the SQL ORDER BY clause without validation or quoting. The R2DBC simple query protocol permits additional statements separated by semicolons, enabling stacked query execution. The flaw affects JHipster versions 7.0.0 through 9.3.x and is fixed in 9.4.0.
Critical Impact
Any authenticated user can read sensitive tables, modify or delete data, or drop tables through crafted sort parameters on paginated endpoints.
Affected Products
- JHipster generator-jhipster versions 7.0.0 through 9.3.x
- Reactive applications using Spring WebFlux with Spring Data R2DBC
- JHipster-generated projects targeting SQL databases via R2DBC
Discovery Timeline
- 2026-10-08 - CVE-2026-107375 published to NVD
- 2026-10-09 - Last updated in NVD database
Technical Details for CVE-2026-107375
Vulnerability Analysis
The vulnerability resides in the JHipster code generator template generators/spring-boot/generators/data-relational/templates/src/main/java/package/repository/EntityManager_reactive.java.ejs. When developers generate a reactive application with a SQL backend, the resulting EntityManager concatenates the client-supplied sort property into the ORDER BY clause of dynamically built queries. No allow-list validation or identifier quoting is applied to the field name.
Because the R2DBC simple query protocol allows multiple statements separated by semicolons, an attacker can append arbitrary SQL after the sort expression. The injection executes with the privileges of the application's database user, which in typical JHipster deployments has full read and write access to the schema.
Root Cause
The generated repository code treats the sort request parameter as a trusted SQL identifier rather than untrusted input. The template emits logic that interpolates the field name directly into the query string. Non-reactive JPA applications and NoSQL backends are outside the root cause because they do not use the vulnerable R2DBC code path.
Attack Vector
An authenticated low-privilege user issues a GET request to any paginated entity-list endpoint with a crafted sort query parameter. The payload closes the legitimate ORDER BY expression and introduces additional statements such as DROP TABLE, UPDATE, or data-exfiltration queries. The server executes the stacked statements against the database.
The patch commit f6f1579581da8db0d1b8bd28dd473b56951c83af replaces the vulnerable condition handling with upper-level Spring Data Repository logic, removing the unsafe interpolation path.
relationshipSerializePrimaryKeyOnly?: boolean;
relationshipValidate?: boolean;
+ /** Normalized {@link BaseRelationship.relationshipValidateRules}. */
relationshipValidateRules?: string[];
};
-export interface Relationship extends BaseApplicationAddedRelationshipProperties, BaseRelationship {
+export interface Relationship extends BaseApplicationAddedRelationshipProperties, Omit<BaseRelationship, 'relationshipValidateRules'> {
otherRelationship: this;
}
Source: JHipster patch commit f6f1579
Detection Methods for CVE-2026-107375
Indicators of Compromise
- HTTP requests to paginated entity endpoints containing sort parameters with SQL metacharacters such as ;, --, /*, or SQL keywords like DROP, UPDATE, SELECT, UNION
- Database audit logs showing unexpected DROP TABLE, DELETE, or schema-modifying statements originating from the application service account
- Spike in 500-level responses from /api/* list endpoints correlated with malformed sort values
Detection Strategies
- Inspect application access logs for sort= query parameters containing non-alphanumeric characters beyond . and ,
- Enable R2DBC and database query logging to capture the full ORDER BY clause and alert on multi-statement queries
- Review generated source for references to createOrderByFields in EntityManager.java to confirm exposure
Monitoring Recommendations
- Deploy a web application firewall rule that rejects sort parameter values failing a strict allow-list of column names
- Monitor for anomalous SQL verbs executed by the application role, especially DDL statements such as DROP and ALTER
- Correlate authentication events with destructive database activity to attribute abuse to a specific user account
How to Mitigate CVE-2026-107375
Immediate Actions Required
- Upgrade generator-jhipster to version 9.4.0 and regenerate affected reactive entity repositories
- Audit all generated reactive projects for the vulnerable EntityManager_reactive.java template output
- Restrict the database account used by the application to the minimum privileges required, removing DDL rights
Patch Information
The fix is included in JHipster 9.4.0. The patch replaces the unsafe condition handling with upper-level Spring Data Repository logic. Review the GitHub Security Advisory GHSA-r223-96jv-q533 and the JHipster v9.4.0 release notes for upgrade guidance.
Workarounds
- Add server-side validation on the sort parameter that rejects any value not matching a hard-coded allow-list of entity field names
- Place a reverse proxy or WAF rule in front of paginated endpoints to strip or sanitize sort values containing semicolons and SQL keywords
- Temporarily disable pagination sort functionality on externally reachable reactive endpoints until the upgrade is applied
# Upgrade JHipster generator and regenerate entities
npm install -g generator-jhipster@9.4.0
jhipster --with-entities
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

