Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with menu-modification rights
-
ExploitInject filter-bypassing XSS into /system/menu/edit
-
ExecutionVictim user loads shared menu
-
ImpactScript executes in victim browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated RuoYi account that holds menu-modification permissions, used against the /system/menu/edit endpoint; the attacker must craft input that specifically bypasses the endpoint's existing XSS filter (default configurations DO include this filter, so a working filter-bypass technique is a hard prerequisite). Execution additionally depends on user interaction (UI:R): a victim user must load/render the shared menu for the stored payload to fire. Key limiting factors are therefore the required privilege level (menu-edit rights are not available to ordinary low-privilege users), the need to defeat the built-in XSS filter rather than inject raw script, and the dependency on victims viewing the affected UI. The amplifying factor is that the menu is a single shared resource, so one successful injection reaches all users who view it. Affected: RuoYi 4.8.1 and earlier. |
| Impact | This is a genuinely moderate-severity, low-priority issue rather than an urgent threat. The CVSS 3.1 base score of 4.6 (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N) tells a consistent story: although the endpoint is network-reachable with low attack complexity, exploitation requires an authenticated account (PR:L) holding menu-modification permissions AND victim user interaction (UI:R) to view the poisoned menu, with only limited confidentiality and integrity impact and no availability impact. The multi-source signals reinforce the 'low real-world urgency' conclusion: EPSS is just 0.18% (7th percentile), indicating very low predicted exploitation probability, and the CVE is NOT on CISA KEV, so there is no evidence of active exploitation. The one elevating signal is that public exploit/POC material exists (referenced GitHub issue), which lowers the skill barrier - but POC availability is distinct from active exploitation and does not by itself raise priority. No signals conflict here; the privilege and user-interaction requirements, low impact, and low EPSS all agree. The description's note that the menu is shared across all users means a single malicious insider or compromised privileged account could affect the entire user base, which modestly increases blast radius but does not change the core gating prerequisite of already having menu-modification rights. |
| Exploit ScenarioDerived | An attacker who already holds a RuoYi account with menu-modification permissions (e.g., a low-trust internal operator or a compromised admin-tier account) crafts a payload that evades the endpoint's XSS filter and saves it via /system/menu/edit. Because the menu is shared application-wide, the stored script then executes in the browser of every other user who renders that menu, enabling session/context theft or unauthorized actions in their sessions. A publicly available POC exists, lowering the effort required, though exploitation still depends on the attacker having menu-edit rights and victims loading the affected UI. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 14, 2026
Stored cross-site scripting in RuoYi 4.8.1 and earlier lets an authenticated user holding menu-modification permissions inject persistent script content through the /system/menu/edit endpoint, and because the application menu is a single resource shared across every account, that payload executes in the browsers of all users who render it. The endpoint is protected by an XSS filter in the default configuration, so a working filter-bypass technique is a hard prerequisite, and delivery still depends on a victim loading the affected UI (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N). Publicly available exploit code exists in the upstream GitHub issue thread, but there is no CISA KEV entry confirming active exploitation and EPSS is low at 0.18% (7th percentile), so this is a moderate-severity, low-priority issue rather than an urgent threat.
RemediationAI
No vendor-released patch is identified in the available data for CVE-2025-67342; the sole reference is the upstream GitHub issue https://github.com/yangzongzhuan/RuoYi/issues/308, so patched-version confirmation should be obtained directly from the RuoYi maintainers before assuming any release resolves the flaw. Until a fix is confirmed, the highest-value control is to restrict the menu-modification permission to the smallest possible set of trusted administrators, since the vulnerability cannot be triggered without an account that can reach /system/menu/edit - the trade-off is added administrative friction and possible bottlenecks in menu maintenance workflows. Because the built-in input filter is demonstrably bypassable, add contextual output encoding or an HTML sanitizer (for example OWASP Java Encoder or a DOMPurify-style allow-list applied when menu labels are rendered) rather than relying on the existing filter; this introduces rendering changes and may require allow-listing any legitimate markup, so test menu display after deployment. A restrictive Content-Security-Policy that disallows inline script reduces execution of stored payloads but can break themes, analytics, or third-party admin plugins and therefore needs staged rollout. Finally, audit the menu table for previously injected records and review the accounts permitted to edit menus, since any existing stored payload will keep firing until it is removed or neutralized by output encoding.
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 flaw is a CWE-79 improper neutralization of user-supplied input during web page generation, materialized as persistent (stored) XSS rather than reflected XSS. RuoYi is a Java/Spring Boot administrative framework whose navigation menu is stored server-side and rendered for every authenticated session, so payloads surviving into that stored menu record are re-served to all users instead of being echoed back only to the injector. The /system/menu/edit endpoint applies an input-side XSS filter, meaning exploitation requires defeating that filter with an encoding or parser-differential technique rather than submitting literal script; the vulnerability class therefore hinges on the filter being incomplete while the output path lacks robust contextual encoding. The CPE cpe:2.3:a:ruoyi:ruoyi:*:*:*:*:*:*:*:* matches the RuoYi application across versions, consistent with the reported affected range of 4.8.1 and earlier. The assessed vector (AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N) confirms network reachability but low confidentiality and integrity impact within a single security authority, and the PR:L/UI:R components make an authenticated menu-editing account and a victim session load a dual prerequisite that sharply limits practical reach.
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
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
Network-reachable endpoint (AV:N) but requires an authenticated menu-edit account (PR:L) and a victim viewing the menu (UI:R); typical stored-XSS limited C/I impact, no availability effect.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
RuoYi versions 4.8.1 and earlier is affected by a stored XSS vulnerability in the /system/menu/edit endpoint. While the endpoint is protected by an XSS filter, the protection can be bypassed. Additionally, because the menu is shared across all users, any user with menu modification permissions can impact all users by exploiting this stored XSS vulnerability.
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
Exploit-DB