NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕ Maven
Not in CISA KEV

JimuReport password-less shares expose unauthenticated SQL injection in /jmreport/qurestSqlGHSA-cxjx-4v5m-2vfx

GHSA-cxjx-4v5m-2vfx is a security vulnerability in org.jeecgframework.jimureport:jimureport-spring-boot4-starter. A fix is available for org.jeecgframework.jimureport:jimureport-spring-boot4-starter — see the affected versions and patch details below.

Also known asCVE-2026-144417
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 5, 2026 · OSV.dev, FIRST.org (EPSS)

Real-World Exposure

1 pkg affected
☕org.jeecgframework.jimureport:jimureport-spring-boot4-starter

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

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 / apiSelectIds 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.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.jeecgframework.jimureport:jimureport-spring-boot4-starterall versions2.5.4org.jeecgframework.jimureport:jimureport-spring-boot4-starter:2.5.4

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jeecgframework.jimureport:jimureport-spring-boot4-starter, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update org.jeecgframework.jimureport:jimureport-spring-boot4-starter to 2.5.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-cxjx-4v5m-2vfx is resolved across your whole dependency graph.

  3. Workarounds

    Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.

Frequently Asked Questions

### 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
O3 Security · Impact-Aware SCA

Is GHSA-cxjx-4v5m-2vfx in your dependencies?

Find it across Maven, including transitive dependencies.