High · 8.8 Node.js & npm GHSA-9ffp-22j7-56r2 CVE-2026-107303 GHSA-r223-96jv-q533 CVE-2026-107375
JHipster Code Generator: Stored XSS and SQL Injection Flaws Fixed in Generated Applications
Two vulnerabilities in the JHipster application generator — a stored XSS issue affecting Blob file handling and a SQL injection flaw in reactive pagination sorting — have been fixed in generator-jhipster 9.4.0, with react-jhipster 1.1.0 also addressing the XSS issue.
By PatchBriefing ·
Produced automatically from official sources with the help of AI. How we work →
AI summary
JHipster is a development platform used to generate web applications and microservice architectures. Two separate vulnerabilities have been disclosed that affect applications produced by the JHipster generator: a stored cross-site scripting (XSS) issue related to how generated applications handle Blob content types, and a SQL injection issue in reactive applications that use Spring WebFlux with R2DBC and a SQL database. Both issues are fixed in generator-jhipster 9.4.0; the XSS issue is additionally addressed in react-jhipster 1.1.0.
What Happened
Two vulnerabilities were disclosed in code templates used by the JHipster generator to scaffold applications. CVE-2026-107303 is a stored XSS issue: generated applications can persist attacker-controlled Blob data along with a companion ContentType value, return it through generated REST endpoints, and pass it to a generated client-side helper (openFile) that uses the ContentType as the browser Blob MIME type when opening the content. CVE-2026-107375 is a SQL injection issue: in applications generated with Spring WebFlux, Spring Data R2DBC, and a SQL database, the 'sort' request parameter on paginated entity-list endpoints is passed into a generated SQL ORDER BY clause without validation or quoting, and the R2DBC simple query protocol allows additional statements to be appended using semicolons.
Technical Cause
For CVE-2026-107303, the root cause lies in the generated openFile helper template (data-utils.ts.ejs), which trusts a stored ContentType value as the MIME type for a Blob opened via an object URL, without restricting which content types are permitted. This allows stored HTML or SVG content to be treated as active content under the application's origin. For CVE-2026-107375, the root cause is in the generated EntityManager_reactive.java.ejs template's createOrderByFields function, which builds a SQL ORDER BY clause directly from the client-supplied 'sort' parameter without validating or quoting field names. Because the R2DBC simple query protocol permits statement chaining via semicolons, this enables injection of arbitrary additional SQL statements.
Why It Matters
In the XSS case, a normal authenticated user with write access to a Blob-bearing entity could store active HTML or SVG content that executes under the application origin when a privileged user later opens it, potentially leading to actions performed in that privileged user's session context. In the SQL injection case, a normal authenticated user could read sensitive tables, modify or delete data, or drop tables in applications built on the affected reactive stack, representing a significant integrity and confidentiality risk.
Who Is Affected
CVE-2026-107303 affects applications generated with generator-jhipster prior to version 9.4.0 or using react-jhipster prior to version 1.1.0, specifically those that use the generated Blob/openFile handling for entities with write access by normal users. CVE-2026-107375 affects applications generated with generator-jhipster from version 7.0.0 up to (but not including) 9.4.0, specifically reactive applications built with Spring WebFlux, Spring Data R2DBC, and a SQL database. Applications using non-reactive JPA or NoSQL backends are not affected by the SQL injection issue according to the available facts.
Affected Versions
generator-jhipster: versions from 0 up to but not including 9.4.0 are affected by CVE-2026-107303; versions from 7.0.0 up to but not including 9.4.0 are affected by CVE-2026-107375. react-jhipster: versions from 0 up to but not including 1.1.0 are affected by CVE-2026-107303.
Fixes and Mitigation
Both issues are fixed in generator-jhipster 9.4.0. The stored XSS issue (CVE-2026-107303) is additionally fixed in react-jhipster 1.1.0. For CVE-2026-107303, the fact package notes that exploitability also depends on the generated application's content security policy and target-browser Blob behavior, meaning actual risk can vary by deployment configuration.
Recommended Action
Update to generator-jhipster 9.4.0 and, where applicable, react-jhipster 1.1.0, then regenerate affected applications so the fixed templates are applied. Since these are code-generator templates rather than a runtime library, previously generated applications will not automatically receive the fix and must be regenerated or manually patched using the updated templates. Review content security policy configuration for generated applications as an additional mitigating control against the XSS issue.
PatchBriefing score
8.8 / 10 · High
Official CVSS: 8.8
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS 0.0063 (44 percentile)
Why this score
The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.
Affected versions
- generator-jhipster ≥ 0 < 9.4.0
- vulnerable
- ≥ 9.4.0
- patched
- react-jhipster ≥ 0 < 1.1.0
- vulnerable
- ≥ 1.1.0
- patched
- generator-jhipster ≥ 7.0.0 < 9.4.0
- vulnerable
- ≥ 9.4.0
- patched
Reported fixes
Both issues are fixed in generator-jhipster 9.4.0. The stored XSS issue (CVE-2026-107303) is additionally fixed in react-jhipster 1.1.0. For CVE-2026-107303, the fact package notes that exploitability also depends on the generated application's content security policy and target-browser Blob behavior, meaning actual risk can vary by deployment configuration.
How this was built
4 source records were collected, matched and used to prepare the report above.
-
OSV.dev database
-
OSV.dev database
-
NVD (NIST) database
-
NVD (NIST) database
Revision history
- Published
- Generated