Skip to main content

RuoYi CVE-2025-67342

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2025-12-12 cve@mitre.org
4.6
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with menu-modification rights
  2. Exploit
    Inject filter-bypassing XSS into /system/menu/edit
  3. Execution
    Victim user loads shared menu
  4. Impact
    Script 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (mitre) PRIMARY 4.6 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 4.6 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular open-source Chinese Spring Boot admin framework, common but not universal
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

43
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:ruoyi:ruoyi:*:*:*:*:*:*:*:*

More in Ruoyi

View all
CVE-2025-28412 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the /editSave method in SysNoticeControlle

CVE-2025-28410 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the cancelAuthUserAll method does not prop

CVE-2025-28406 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobLogId parameter. Rated critical sev

CVE-2025-28405 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the changeStatus method. Rated critical se

CVE-2025-28402 CRITICAL POC
9.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the jobId parameter. Rated critical severi

CVE-2023-49371 CRITICAL POC
9.8 Dec 01

RuoYi up to v4.6 was discovered to contain a SQL injection vulnerability via /system/dept/edit. Rated critical severity

CVE-2022-4566 CRITICAL POC
9.8 Dec 16

A vulnerability, which was classified as critical, has been found in y_project RuoYi 4.7.5. Rated critical severity (CVS

CVE-2025-70985 CRITICAL POC
9.1 Jan 23

RuoYi v4.8.2 has an access control flaw in the update function allowing unauthorized attackers to modify arbitrary data

CVE-2025-28409 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the add method of the /add/{parentId} endp

CVE-2025-28407 HIGH POC
8.8 Apr 07

An issue in RUoYi v.4.8.0 allows a remote attacker to escalate privileges via the edit method of the /edit/{dictId} endp

CVE-2025-56396 HIGH POC
8.8 Nov 26

An issue was discovered in Ruoyi 4.8.1 allowing attackers to gain escalated privileges due to the owning department havi

CVE-2022-23868 HIGH POC
7.8 Mar 30

RuoYi v4.7.2 contains a CSV injection vulnerability through ruoyi-admin when a victim opens .xlsx log file. Rated high s

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy