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-97322 Overview
CVE-2026-97322 is a cross-site scripting (XSS) vulnerability in the YunaiV/zhijiantianya ruoyi-vue-pro project through version 2026.08. The flaw resides in the File Upload component, specifically within yudao-module-infra/src/main/java/cn/iocoder/yudao/module/infra/controller/admin/file/FileController.java. An unauthenticated remote attacker can manipulate upload input to inject script content that executes in the context of a victim's browser. The exploit has been publicly disclosed. The vendor was contacted prior to publication but did not respond. The weakness is classified under CWE-79: Improper Neutralization of Input During Web Page Generation.
Critical Impact
Remote attackers can trigger reflected or stored XSS through the file upload endpoint, enabling session abuse, credential theft, or administrative-interface compromise when a privileged user interacts with crafted content.
Affected Products
- YunaiV/zhijiantianya ruoyi-vue-pro versions up to and including 2026.08
- yudao-module-infra File Upload component
- FileController.java admin file upload handler
Discovery Timeline
- 2026-09-24 - CVE-2026-97322 published to NVD
- 2026-09-29 - Last updated in NVD database
Technical Details for CVE-2026-97322
Vulnerability Analysis
The vulnerability exists in the administrative File Upload controller inside the yudao-module-infra module. User-controlled input tied to the upload workflow is reflected or stored without sufficient output encoding. When rendered in the admin interface, the content executes as script in the browser session of any user who views the resource. Because the attack vector is network-based and does not require authentication, any external actor can craft the payload. User interaction is required, typically through tricking an administrator into visiting or previewing the uploaded resource.
Root Cause
The root cause is improper neutralization of input during web page generation [CWE-79]. The upload handler in FileController.java does not consistently sanitize or encode file-related fields such as filename or metadata before persisting them or returning them to the admin UI. Downstream rendering treats attacker-supplied text as executable markup rather than inert data.
Attack Vector
An attacker submits a request to the file upload endpoint containing a crafted filename or associated metadata embedding JavaScript. The malicious value is stored and later served to privileged users in the administrative console. When an administrator loads the file list or detail view, the injected script executes with the privileges of that session. Potential outcomes include session cookie exfiltration, forced actions against the admin API, and pivoting to internal management functions.
No verified proof-of-concept code is available in the enriched data set. See the VulDB entry for CVE-2026-97322 and the VulDB vulnerability record #409330 for additional technical context.
Detection Methods for CVE-2026-97322
Indicators of Compromise
- Uploaded files whose names or metadata fields contain HTML tags, <script> blocks, javascript: URIs, or event-handler attributes such as onerror= and onload=.
- Administrative sessions issuing unexpected API calls shortly after loading the file management view.
- Outbound requests from admin browser sessions to unfamiliar domains following access to yudao-module-infra upload pages.
Detection Strategies
- Inspect HTTP request bodies to the file upload endpoint in FileController.java for script-like patterns in filename and metadata parameters.
- Review stored file records in the database for values that contain angle brackets or encoded script fragments.
- Correlate admin console page views with anomalous XHR activity originating from the same browser session.
Monitoring Recommendations
- Enable verbose request logging on the admin file upload API and forward events to a centralized analytics platform for review.
- Alert on uploads where the filename length, character set, or structure deviates from the expected baseline.
- Monitor administrator accounts for unusual privilege-sensitive actions performed immediately after file list access.
How to Mitigate CVE-2026-97322
Immediate Actions Required
- Restrict access to the ruoyi-vue-pro administrative interface to trusted networks or VPN only until a fix is applied.
- Review all previously uploaded file records for malicious filename or metadata content and purge offending entries.
- Enforce a strict Content Security Policy (CSP) in the admin frontend to block inline script execution.
Patch Information
No vendor patch is referenced in the enriched data. The disclosure notes that the maintainer did not respond to coordinated contact. Monitor the upstream ruoyi-vue-pro repository and the VulDB submission record #908273 for updates. Apply fixes as soon as the project publishes a corrected release.
Workarounds
- Apply a web application firewall (WAF) rule to block upload requests containing HTML or script syntax in filename and form fields.
- Implement server-side sanitization that rejects or encodes angle brackets, quotes, and event-handler patterns in uploaded filenames before persistence.
- Configure the admin UI to render filename and metadata values using safe DOM text APIs rather than inner HTML.
- Rename stored files to server-generated identifiers and display original names only after strict HTML encoding.
# Example nginx rule to drop upload requests with script-like filename patterns
location /admin-api/infra/file/upload {
if ($request_body ~* "(<script|javascript:|onerror=|onload=)") {
return 403;
}
proxy_pass http://ruoyi_backend;
}
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

