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-97321 Overview
CVE-2026-97321 is a SQL injection vulnerability in the YunaiV ruoyi-vue-pro project up to version 2026.08. The flaw resides in the GoViewDataServiceImpl.getDataBySQL function within yudao-module-report/src/main/java/cn/iocoder/yudao/module/report/service/goview/GoViewDataServiceImpl.java. Attackers can manipulate the sql argument sent to the GoView Data Endpoint to execute arbitrary SQL statements. The exploit requires authentication but can be performed remotely over the network. Public disclosure of the exploit technique has occurred, and the vendor did not respond to coordinated disclosure attempts.
Critical Impact
Authenticated remote attackers can inject arbitrary SQL through the GoView Data Endpoint, potentially exposing or modifying report data stored in the backend database [CWE-74].
Affected Products
- YunaiV/zhijiantianya ruoyi-vue-pro up to and including version 2026.08
- yudao-module-report component containing the GoView reporting module
- GoViewDataServiceImpl.getDataBySQL function in the GoView Data Endpoint
Discovery Timeline
- 2026-09-24 - CVE-2026-97321 published to the National Vulnerability Database
- 2026-09-24 - Last updated in NVD database
Technical Details for CVE-2026-97321
Vulnerability Analysis
The vulnerability is a classic SQL injection flaw [CWE-74] in the GoView reporting module of ruoyi-vue-pro, an open source rapid development platform based on Spring Boot and Vue. The getDataBySQL method accepts a sql parameter from client input and passes it into database query execution without parameterization or allowlist validation.
GoView is a low-code data visualization tool, and its data endpoint is designed to execute dynamic queries that drive dashboards. When this endpoint accepts raw SQL from the request body, any authenticated user with access to the reporting module can replace the intended query with a malicious payload. The injected SQL executes with the privileges of the backend database connection, which typically holds broad read and write access to the application schema.
Successful exploitation enables data exfiltration from report tables, modification of records, and potential pivoting to other databases accessible to the service account. Blind, union-based, and stacked-query techniques are all viable depending on the underlying database driver configuration.
Root Cause
The root cause is improper neutralization of special elements in a downstream SQL statement. The GoViewDataServiceImpl.getDataBySQL function treats user-supplied input as a trusted SQL string rather than as untrusted data that must be bound through prepared statements.
Attack Vector
The attack vector is network-based and requires low privileges, matching the attack profile of an authenticated internal or external user with access to the GoView reporting interface. The attacker sends a crafted HTTP request to the GoView Data Endpoint with a malicious sql payload. See the VulDB entry for CVE-2026-97321 and the VulDB vulnerability record #409329 for additional technical context.
Detection Methods for CVE-2026-97321
Indicators of Compromise
- HTTP requests to GoView report data endpoints containing SQL keywords such as UNION SELECT, SLEEP(, BENCHMARK(, INFORMATION_SCHEMA, or stacked semicolons in the sql parameter.
- Unusual query patterns in application and database logs originating from the yudao-module-report service account.
- Spikes in response latency on report endpoints consistent with time-based blind SQL injection probing.
Detection Strategies
- Enable verbose logging on the GoViewDataServiceImpl class and alert on any invocation of getDataBySQL from non-administrative principals.
- Deploy database activity monitoring to flag queries that read from information_schema, mysql.user, or system catalogs through the application connection pool.
- Configure a web application firewall with SQL injection signatures tuned for JSON request bodies on the /goview/ or /report/ API paths.
Monitoring Recommendations
- Correlate authenticated user sessions with report endpoint access to identify accounts executing abnormal query volumes.
- Ingest application, web server, and database logs into a centralized analytics platform to detect multi-stage injection attempts.
- Review audit trails for schema enumeration activity following any access to the GoView reporting module.
How to Mitigate CVE-2026-97321
Immediate Actions Required
- Restrict access to the GoView reporting module to a minimum set of trusted administrative users through role-based access control.
- Block external access to the yudao-module-report endpoints at the reverse proxy or API gateway until a patch is applied.
- Rotate credentials for the database account used by ruoyi-vue-pro and reduce its privileges to the least required for reporting.
- Audit historical logs for prior invocations of the vulnerable endpoint to confirm whether exploitation has already occurred.
Patch Information
As of the NVD publication date of 2026-09-24, no vendor advisory or official patch has been released. The vendor was contacted but did not respond to the disclosure. Monitor the project repository and the VulDB submission #908272 for updates. Organizations relying on ruoyi-vue-pro should track upstream commits that refactor GoViewDataServiceImpl.getDataBySQL to use parameterized queries or an allowlist of permitted SQL templates.
Workarounds
- Disable or remove the GoView data endpoint if the reporting feature is not required in your deployment.
- Add a server-side filter that rejects any request whose sql parameter contains characters or keywords outside a strict allowlist.
- Enforce database-level permissions so that the application account cannot read system catalogs or execute data-definition statements.
- Deploy a web application firewall rule set that inspects JSON request bodies for SQL injection patterns on report endpoints.
# Example reverse proxy rule to block external access to the vulnerable endpoint
location ~* /goview/.*/getDataBySQL {
deny all;
return 403;
}
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

