Vulnerabilities in pkg:maven/org.jeecgframework.jimureport/jimureport-spring-boot4-starter

PACKAGE
Advisory Identifier: GHSA-cxjx-4v5m-2vfx
Advisory Summary

CVE-2026-144417 is a MODERATE sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Spring Framework libraries in the Maven ecosystem. The issue involves jimureport password-less shares expose unauthenticated sql injection in /jmreport/qurestsql. Remediation is available by upgrading affected packages to version 2.5.4.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jeecgframework.jimureport/jimureport-spring-boot4-starter

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jeecgframework.jimureport/jimureport-spring-boot4-starter. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-cxjx-4v5m-2vfx CVE-2026-144417 MODERATE JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql

CVE-2026-144417 at a Glance

CVE Identifier CVE-2026-144417
GHSA Identifier GHSA-cxjx-4v5m-2vfx
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-144417

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jeecgframework.jimureport:jimureport-spring-boot4-starter fixed: 2.5.4
<dependency>
    <groupId>org.jeecgframework.jimureport</groupId>
    <artifactId>jimureport-spring-boot4-starter</artifactId>
    <version>2.5.4</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jeecgframework.jimureport

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-144417, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jeecgframework.jimureport

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.5.4), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jeecgframework.jimureport command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary The dataset-preview endpoint `POST /jmreport/qurestSql` substitutes request parameters into the dataset SQL (`jimu_report_db.db_dyn_sql`, e.g. `select * from rep_demo_order_product where order_fk_id = '${orderId}'`) using **raw string replacement — no binding, no escaping — in current jimureport 2.5.2** (latest release, 2026-09-08). This is the same defective substitution class as CVE-2023-1454. Since the 1.9.x hardening the endpoint is no longer reachable by anonymous callers directly: `JimuReportTokenInterceptor` rejects requests without a valid token. However the interceptor's share logic (`isSharingEffective`) resolves the report behind the requested `apiSelectId` (`jimu_report_db → jimu_report_id`) and grants access when **that report has any active share without a share token** — i.e. an ordinary public dashboard link. Public share links are distributed to end users by design, so on any deployment that has shared a report without password protection (the common case), an unauthenticated attacker can: 1. obtain the report's dataset configuration anonymously through the share-whitelisted `POST /jmreport/getQueryInfo` (dataset ids / `apiSelectId`s are embedded in the report JSON), 2. reach `qurestSql` in the share context, 3. inject through the `${param}` placeholders. ### Proof of Concept Reproduced on a default local install (jimureport-spring-boot4-starter 2.5.2 + jeecg-boot 3.9.5 HEAD). Preparation: one active password-less share row for a report that owns a parameterized SQL dataset (`... where order_fk_id = '${orderId}'`). Then, **with no token at all**: ``` POST /jeecg-boot/jmreport/qurestSql {"apiSelectId":"<datasetId>","orderId":"1001"} → 200, 19 rows (baseline, value matches nothing real) POST /jeecg-boot/jmreport/qurestSql {"apiSelectId":"<datasetId>","orderId":"X' or '1'='1"} → 200, 37 rows (entire table — injection) ``` Boolean-blind extraction of `sys_user` credentials (row-count oracle; `select`/`union` are not on the jimureport keyword blacklist, and no error-based technique is needed): ``` {"apiSelectId":"...","orderId":"X' or (select substring(password,1,1) from sys_user where username='admin')='c"} → 37 rows (TRUE: admin's password hash starts with 'c'; any other guess → 0 rows) ``` Iterating `substring(password,n,1)` extracts the full hash offline through a clean row-count oracle. ### Notes on the security filter The jimureport-side `SqlInjectionUtil` keyword list does not contain `select`, `union`, `and`, `or`, `substring` etc., and the checks that do exist are only invoked on specific code paths; the boolean technique above passes untouched. Error-based functions (`extractvalue`, `updatexml`) are filtered, which is why the row-count oracle is used instead. ### Impact - On any deployment with at least one active password-less share: **unauthenticated boolean-blind SQL injection into the report datasource**, enabling extraction of arbitrary data from that connection (on default installs the shared datasource is the main application database, so `sys_user` and `sys_data_source` are reachable, as demonstrated). - Share links are routinely created without tokens for public dashboards, so the precondition is realistic and permanent, not a corner case. ### Suggested remediation 1. Bind dataset parameters via PreparedStatement placeholders instead of string substitution in `qurestechSql` (and the same substitution used by `/jmreport/show` rendering); 2. Require share tokens to be validated against the *specific dataset/`apiSelectId`* being queried (the current check only binds the share to the report, then grants all share-whitelisted endpoints for that report); 3. Add `and`/`or`/`substring`/`select`/`union` to the jimureport blacklist as defense-in-depth, or adopt the grammar-whitelist approach used in the main application. ### Related - CVE-2023-1454 — same endpoint, historically exploited pre-hardening; the authentication gate added afterwards does not address the underlying raw substitution, which persists in 2.5.2. - My other private report on `/drag/onlDragDatasetHead/getTotalData` documents the sibling weakness in the drag module (validator/template key mismatch) — the shared root pattern is "template consumes keys that validation never sees". ### Notes - jimureport 2.5.2 is the latest release (Maven, 2026-09-08) and jeecg-boot 3.9.5 HEAD at reporting time; no public report of this share-context vector found as of 2026-09-16. - All testing was performed against a locally built instance; no third-party systems were touched; no public disclosure.

CVE-2026-144417 Affected Spring Framework Versions

1 component(s)
Fixed Versions:
2.5.4
Product / Package Ecosystem Affected Versions Fixed Version
org.jeecgframework.jimureport:jimureport-spring-boot4-starter
Maven
< 2.5.4
2.5.4

References

Frequently Asked Questions

What is CVE-2026-144417?
CVE-2026-144417 is a security vulnerability in Spring Framework involving JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection').
Which Spring Framework versions are affected?
Affected versions include releases prior to 2.5.4 across affected packages: org.jeecgframework.jimureport:jimureport-spring-boot4-starter.
What version fixes CVE-2026-144417?
Upgrading to 2.5.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jimureport-spring-boot4-starter affected?
Yes, org.jeecgframework.jimureport:jimureport-spring-boot4-starter is affected in releases prior to 2.5.4. Upgrade your dependency to 2.5.4 or later.
What CWE is associated with CVE-2026-144417?
CVE-2026-144417 is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') (The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.).
How can I check Maven dependencies for CVE-2026-144417?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jeecgframework.jimureport'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cxjx-4v5m-2vfx",
  "modified" : "2026-12-04T22:08:39Z",
  "published" : "2026-12-04T22:08:39Z",
  "aliases" : [ "CVE-2026-144417" ],
  "summary" : "JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSql",
  "details" : "### Summary\n\nThe dataset-preview endpoint `POST /jmreport/qurestSql` substitutes request parameters into the dataset SQL (`jimu_report_db.db_dyn_sql`, e.g. `select * from rep_demo_order_product where order_fk_id = '${orderId}'`) using **raw string replacement — no binding, no escaping — in current jimureport 2.5.2** (latest release, 2026-09-08). This is the same defective substitution class as CVE-2023-1454.\n\nSince the 1.9.x hardening the endpoint is no longer reachable by anonymous callers directly: `JimuReportTokenInterceptor` rejects requests without a valid token. However the interceptor's share logic (`isSharingEffective`) resolves the report behind the requested `apiSelectId` (`jimu_report_db → jimu_report_id`) and grants access when **that report has any active share without a share token** — i.e. an ordinary public dashboard link. Public share links are distributed to end users by design, so on any deployment that has shared a report without password protection (the common case), an unauthenticated attacker can:\n\n1. obtain the report's dataset configuration anonymously through the share-whitelisted `POST /jmreport/getQueryInfo` (dataset ids / `apiSelectId`s are embedded in the report JSON),\n2. reach `qurestSql` in the share context,\n3. inject through the `${param}` placeholders.\n\n### Proof of Concept\n\nReproduced on a default local install (jimureport-spring-boot4-starter 2.5.2 + jeecg-boot 3.9.5 HEAD). Preparation: one active password-less share row for a report that owns a parameterized SQL dataset (`... where order_fk_id = '${orderId}'`). Then, **with no token at all**:\n\n```\nPOST /jeecg-boot/jmreport/qurestSql\n{\"apiSelectId\":\"<datasetId>\",\"orderId\":\"1001\"}\n→ 200, 19 rows                       (baseline, value matches nothing real)\n\nPOST /jeecg-boot/jmreport/qurestSql\n{\"apiSelectId\":\"<datasetId>\",\"orderId\":\"X' or '1'='1\"}\n→ 200, 37 rows                       (entire table — injection)\n```\n\nBoolean-blind extraction of `sys_user` credentials (row-count oracle; `select`/`union` are not on the jimureport keyword blacklist, and no error-based technique is needed):\n\n```\n{\"apiSelectId\":\"...\",\"orderId\":\"X' or (select substring(password,1,1) from sys_user where username='admin')='c\"}\n→ 37 rows   (TRUE: admin's password hash starts with 'c'; any other guess → 0 rows)\n```\n\nIterating `substring(password,n,1)` extracts the full hash offline through a clean row-count oracle.\n\n### Notes on the security filter\n\nThe jimureport-side `SqlInjectionUtil` keyword list does not contain `select`, `union`, `and`, `or`, `substring` etc., and the checks that do exist are only invoked on specific code paths; the boolean technique above passes untouched. Error-based functions (`extractvalue`, `updatexml`) are filtered, which is why the row-count oracle is used instead.\n\n### Impact\n\n- On any deployment with at least one active password-less share: **unauthenticated boolean-blind SQL injection into the report datasource**, enabling extraction of arbitrary data from that connection (on default installs the shared datasource is the main application database, so `sys_user` and `sys_data_source` are reachable, as demonstrated).\n- Share links are routinely created without tokens for public dashboards, so the precondition is realistic and permanent, not a corner case.\n\n### Suggested remediation\n\n1. Bind dataset parameters via PreparedStatement placeholders instead of string substitution in `qurestechSql` (and the same substitution used by `/jmreport/show` rendering);\n2. Require share tokens to be validated against the *specific dataset/`apiSelectId`* being queried (the current check only binds the share to the report, then grants all share-whitelisted endpoints for that report);\n3. Add `and`/`or`/`substring`/`select`/`union` to the jimureport blacklist as defense-in-depth, or adopt the grammar-whitelist approach used in the main application.\n\n### Related\n\n- CVE-2023-1454 — same endpoint, historically exploited pre-hardening; the authentication gate added afterwards does not address the underlying raw substitution, which persists in 2.5.2.\n- My other private report on `/drag/onlDragDatasetHead/getTotalData` documents the sibling weakness in the drag module (validator/template key mismatch) — the shared root pattern is \"template consumes keys that validation never sees\".\n\n### Notes\n\n- jimureport 2.5.2 is the latest release (Maven, 2026-09-08) and jeecg-boot 3.9.5 HEAD at reporting time; no public report of this share-context vector found as of 2026-09-16.\n- All testing was performed against a locally built instance; no third-party systems were touched; no public disclosure.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jeecgframework.jimureport:jimureport-spring-boot4-starter"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.5.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jeecgboot/JeecgBoot/security/advisories/GHSA-cxjx-4v5m-2vfx"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-144417"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jeecgboot/JeecgBoot"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jeecgboot/jimureport/releases/tag/v2.5.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-89" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-04T22:08:39Z",
    "nvd_published_at" : "2026-12-04T18:17:30Z"
  }
}