RuoYi
CVE-2025-7903
LOW
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege credentials
-
DeliverySubmit crafted image source request
-
ExploitBypass UI layer access controls
-
ExecutionExpose hidden elements or inject XSS payload
-
ImpactExecute JavaScript in victim browser context
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V3 - Web Frontend Security Clickjacking prevention, X-Frame-Options
|
| Exploitation Conditions | Exploitation requires authenticated access to RuoYi (PR:L in CVSS vector), meaning the attacker must possess valid login credentials. The vulnerability specifically affects the Image Source Handler component's UI layer rendering logic; exploitation depends on this component being enabled and processing user-supplied or attacker-controlled image sources. No evidence suggests default installation is vulnerable without additional configuration, though exact safe-by-default settings are not documented. The low EPSS percentile suggests exploitation may require additional triggering conditions not evident from the CVE description (such as specific browser behavior, particular user roles, or non-default deployment modes). The XSS tag indicates a UI-based exploitation vector, implying victim user interaction or administrator configuration that enables dynamic image handling. |
| Impact | Multiple signals suggest low real-world risk despite public exploit availability. The EPSS score of 0.05% at the 15th percentile indicates substantially lower exploitation likelihood than CVSS alone would suggest, a critical gap in this case. The CVSS vector shows VI:L (low integrity impact), VC:N (no confidentiality impact), and VA:N (no availability impact), limiting the damage scope. Authentication is required (PR:L), filtering out unauthenticated mass exploitation. The CVE tag 'XSS' combined with UI layer restrictions suggests this may be a cross-site scripting variant confined to authenticated sessions rather than critical system compromise. The public exploit availability does not translate to widespread real-world attacks given the low EPSS percentile, suggesting this vulnerability targets specific use cases or requires deliberate attacker action. This is appropriately classified as lower priority despite public disclosure. |
| Exploit ScenarioDerived | An authenticated RuoYi user with low-privilege account credentials (such as a read-only dashboard viewer) submits a crafted request to the Image Source Handler component, bypassing UI layer restrictions to expose hidden administrative interface elements or sensitive data fields. Alternatively, the attacker injects malicious image sources that execute JavaScript within the UI context, stealing session tokens from other authenticated users viewing the same page-a reflected XSS scenario. Public exploit code exists but requires valid authentication credentials and user interaction or specific deployment configuration to trigger impact. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 29, 2026
Improper restriction of rendered UI layers in RuoYi up to version 4.8.1 allows authenticated remote attackers to manipulate image source handling, leading to unauthorized UI layer visibility or modification. The CVSS score of 2.1 reflects limited integrity impact requiring authenticated access, but the low EPSS score (0.05%, 15th percentile) suggests this vulnerability has minimal real-world exploitation probability despite publicly available exploit code.
RemediationAI
Upgrade RuoYi to a patched version released after 4.8.1; however, the specific patched version number is not confirmed in available references. Organizations should consult the official RuoYi GitHub repository (https://github.com/yangzongzhuan/RuoYi) and issue tracker (https://github.com/yangzongzhuan/RuoYi/issues/295) for the latest available release. As an interim compensating control, restrict image source handler functionality to non-sensitive UI elements or disable dynamic image loading in authenticated sessions if operationally feasible. Implement Content Security Policy (CSP) headers to restrict UI layer manipulation and XSS-related attacks. Monitor authenticated user sessions for unusual image source requests or UI modification attempts. These controls reduce attack surface while waiting for official patched releases.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the Image Source Handler component of RuoYi, a Java-based rapid development framework. CWE-1021 (Improper Restriction of Rendered UI Layers or Frames) indicates the root cause is inadequate control over which UI elements are presented to users, potentially exposing sensitive information or allowing unauthorized modifications through improper layer isolation. The CVSSv4 vector (AV:N/AC:L/PR:L) specifies network-accessible exploitation requiring low authentication privileges, suggesting this affects authenticated users with minimal escalation requirements.
Know when Ruoyi gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
A vulnerability classified as problematic was found in yangzongzhuan RuoYi up to 4.8.1. Affected by this vulnerability is an unknown functionality of the component Image Source Handler. The manipulation leads to improper restriction of rendered ui layers. The attack can be launched remotely. The exploit has been disclosed to the public and may be used.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the /editSave method in SysNoticeControlle
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the cancelAuthUserAll method does not prop
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobLogId parameter. Rated critical sev
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the changeStatus method. Rated critical se
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobId parameter. Rated critical severi
RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit. Rated critical severity
A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. Rated critical severity (CVS
RuoYi v4.8.2 has an access control flaw in the update function allowing unauthorized attackers to modify arbitrary data
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the add method of the /add/{parentId} endp
An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the edit method of the /edit/{dictId} endp
An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department havi
RuoYi v4.7.2 contains a CSV injection vulnerability through ruoyi-admin when a victim opens .xlsx log file. Rated high s
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB