Skip to main content
Vulnerability Database/CVE-2026-108802

CVE-2026-108802: RuoYi Dictionary Data XSS Vulnerability

CVE-2026-108802 is a cross-site scripting flaw in RuoYi y_project affecting the Dictionary Data Drawer Preview component. Attackers can exploit this remotely via the cssClass parameter. This article covers technical details, affected versions, impact assessment, and mitigation strategies.

Published:

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-108802 Overview

CVE-2026-108802 is a stored cross-site scripting (XSS) vulnerability affecting y_project RuoYi through version 4.8.3. The flaw resides in the renderDrawer function of the /system/dict/data/add endpoint within the Dictionary Data Drawer Preview component. An authenticated remote attacker can manipulate the cssClass argument to inject arbitrary script content. The exploit has been published, and the vendor did not respond to disclosure attempts. The weakness is tracked under CWE-79.

Critical Impact

Attackers with low-privileged access can inject persistent JavaScript payloads that execute in the browsers of users who view the dictionary preview, enabling session hijacking and administrative action abuse.

Affected Products

  • y_project RuoYi versions up to and including 4.8.3
  • Dictionary Data Drawer Preview component (renderDrawer function)
  • Endpoint /system/dict/data/add

Discovery Timeline

  • 2026-10-12 - CVE-2026-108802 published to NVD
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2026-108802

Vulnerability Analysis

The vulnerability is a stored cross-site scripting flaw in the RuoYi management framework. RuoYi is an open-source rapid-development platform widely used for building Chinese enterprise back-office systems. The renderDrawer function, which renders the Dictionary Data Drawer Preview, incorporates the user-supplied cssClass parameter into generated HTML without adequate output encoding. An authenticated user with permission to add dictionary data can submit a crafted cssClass value containing script markup. The payload is persisted and later rendered when administrators or other operators preview dictionary entries. User interaction is required because the payload executes only when a victim views the affected drawer.

Root Cause

The root cause is improper neutralization of input during web page generation [CWE-79]. The cssClass argument accepted by /system/dict/data/add is written into the drawer preview markup without HTML or attribute-context escaping. Because the value is stored server-side, the injected content is served to every subsequent viewer of the dictionary preview, producing a stored XSS condition rather than a reflected one.

Attack Vector

Exploitation requires network access to the RuoYi application and a low-privilege authenticated session. The attacker submits a dictionary data entry containing malicious markup within the cssClass field. When a privileged user later opens the Dictionary Data Drawer Preview, the browser parses and executes the attacker-controlled script in the application origin. The script can read session data, perform CSRF-equivalent actions on behalf of the victim, or pivot to administrative functionality. A public proof-of-concept is available in the GitHub PoC Repository.

Technical details and reproduction steps are documented in the GitHub Security Report and the VulDB CVE-2026-108802 entry.

Detection Methods for CVE-2026-108802

Indicators of Compromise

  • POST requests to /system/dict/data/add containing HTML tags, javascript: URIs, or event handler attributes within the cssClass parameter.
  • Dictionary data records whose cssClass field contains <script>, onerror, onload, or other active content fragments.
  • Browser console errors or unexpected network callouts observed when administrators open the dictionary preview drawer.

Detection Strategies

  • Inspect persisted dictionary data in the database for stored HTML or JavaScript inside style-related columns.
  • Review web application firewall (WAF) and reverse proxy logs for XSS signatures targeting the dictionary endpoints.
  • Correlate authenticated POSTs to /system/dict/data/add with subsequent GET traffic to dictionary preview views originating from administrator accounts.

Monitoring Recommendations

  • Alert on any administrator session that triggers outbound requests to unknown domains shortly after loading dictionary pages.
  • Monitor for anomalous privilege use following dictionary edits by low-privileged accounts.
  • Track creation and modification events on dictionary data records and route them to the security data lake for retrospective hunting.

How to Mitigate CVE-2026-108802

Immediate Actions Required

  • Restrict the /system/dict/data/add endpoint to trusted administrators until a fix is deployed.
  • Audit existing dictionary data records and remove any entries containing HTML or script content in the cssClass field.
  • Enforce a strict Content Security Policy (CSP) that blocks inline scripts and untrusted sources on RuoYi management pages.

Patch Information

At the time of publication, the vendor had not responded to disclosure and no official patch is referenced in the advisory. Monitor the y_project RuoYi project for upstream fixes and apply updates when released. Review the VulDB Vulnerability Report for ongoing status updates.

Workarounds

  • Apply server-side input validation that rejects angle brackets, quotes, and javascript: URIs in the cssClass parameter.
  • Add output encoding in the renderDrawer function so stored values are escaped for HTML attribute context.
  • Deploy a WAF rule that blocks requests to /system/dict/data/add containing XSS payload patterns.
  • Reduce privileges on accounts that can create or modify dictionary data to limit the exploit surface.
bash
# Example WAF rule (ModSecurity) to block script content in cssClass
SecRule ARGS:cssClass "@rx (?i)(<script|javascript:|on\w+\s*=)" \
    "id:1082026,phase:2,deny,status:403,\
    msg:'Potential XSS in RuoYi cssClass parameter (CVE-2026-108802)'"

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.