Skip to main content

RuoYi CVE-2025-7902

LOW
Cross-site Scripting (XSS) (CWE-79)
2025-07-20 cna@vuldb.com
2.0
CVSS 4.0 · NVD
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate to RuoYi application
  2. Delivery
    Navigate to notice management module
  3. Exploit
    Submit notice with embedded XSS payload
  4. Install
    Payload stored in database
  5. C2
    Victim views notice list
  6. Execute
    JavaScript executes in victim's browser
  7. Impact
    Attacker gains access to victim's session or data

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 the following specific conditions: (1) The attacker must be an authenticated user with permission to create or edit system notices via the SysNoticeController.addSave endpoint. (2) The victim must access a page or interface that displays the stored notice content without sanitization. (3) The victim's browser must support JavaScript execution (no special browser configuration bypasses are needed). (4) No output encoding or HTML escaping is performed on the notice text when rendered. The vulnerability does NOT require special RuoYi configuration settings, does NOT require administrative privileges for the attacker, and does NOT require the victim to click external links - viewing the notices page is sufficient. The limiting factors are: authentication requirement (excludes unauthenticated attackers) and user interaction (victim must navigate to the notices view).

Impact

Despite the publicly available exploit code, the real-world risk remains minimal based on multiple converging signals. The EPSS score of 0.05% (16th percentile) indicates historically low exploitation probability despite public disclosure. The CVSS v4.0 vector reflects several limiting factors: authentication is required (PR:L), user interaction is necessary (UI:P), and the attack scope is unchanged (S:X with no scope expansion). While the attack vector is network-based (AV:N) and attack complexity is low (AC:L), the combination of authentication and user interaction substantially reduces operational risk. This is a classic case where a high-CVSS assessment (2.0 on v4.0 scale) misleadingly suggests low severity, but the underlying metrics and low EPSS indicate a bounded threat. Organizations should prioritize patching based on whether they allow untrusted users to create notices or if notice content is visible to sensitive audiences, not on perceived severity.

Exploit ScenarioDerived

An authenticated user with permission to create system notices crafts a notice containing a JavaScript payload such as <img src=x onerror='fetch("/api/users", {credentials:"include"})'>. When administrative users or other authenticated users view the notices list, the malicious script executes in their browser context, allowing the attacker to steal session tokens or perform actions on their behalf. A public proof-of-concept demonstrating this technique is available on the GitHub issue.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 29, 2026

Stored cross-site scripting (XSS) in RuoYi up to version 4.8.1 allows authenticated users to inject malicious scripts via the SysNoticeController.addSave function, compromising integrity of system notices. The vulnerability requires user interaction and authenticated access but has a publicly available proof-of-concept. With an EPSS score of 0.05%, exploitation remains unlikely in practice despite the public disclosure.

RemediationAI

Apply the security patch released by the RuoYi project following the public disclosure on GitHub issue #294 (https://github.com/yangzongzhuan/RuoYi/issues/294). Upgrade to version 4.8.2 or later once available. If an immediate patch is unavailable, implement input validation and output encoding in the SysNoticeController.addSave method to sanitize notice content before storage, using a Java HTML sanitizer library such as OWASP ESAPI or HtmlCleaner. Alternatively, restrict notice creation to trusted administrative users only by implementing stricter role-based access control (RBAC) on the notice management endpoint. Additionally, implement Content Security Policy (CSP) headers to mitigate XSS impact at the browser level, though this does not eliminate the underlying vulnerability. Each workaround carries trade-offs: input sanitization may alter legitimate notice formatting, access restrictions reduce functionality, and CSP alone leaves the stored payload intact.

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 exists in the com/ruoyi/web/controller/system/SysNoticeController.java file, specifically in the addSave method responsible for handling notice creation. The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation), indicating that user-supplied input is not properly sanitized before being stored and rendered in the web interface. RuoYi, an open-source Java-based rapid development framework, fails to perform adequate output encoding or input validation on the notice content parameter, allowing attackers to embed JavaScript payloads that execute when other users view the stored notice.

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

NVD PRIMARY 2.0 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability classified as problematic has been found in yangzongzhuan RuoYi up to 4.8.1. Affected is the function addSave of the file com/ruoyi/web/controller/system/SysNoticeController.java. The manipulation leads to cross site scripting. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Low

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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