Skip to main content
CVE-2025-7901VulnerabilityPublished Updated

CVE-2025-7901: yangzongzhuan RuoYi · Cross Site Scripting

Affects yangzongzhuan RuoYiSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.8% chance of exploitation in 30 days – higher than 58% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
GitHubyangzongzhuan/RuoYipkg:github/yangzongzhuan/RuoYiOther threatsAffected
  • =4.8.0
  • =4.8.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediate mitigation should include restricting access to the Swagger UI interface to trusted internal networks or authenticated users only, reducing exposure to external attackers. 2. Implement Content Security Policy (CSP) headers to limit the execution of unauthorized scripts in the Swagger UI context. 3. Sanitize and validate all inputs, especially the configUrl parameter, to prevent injection of malicious scripts. 4. Monitor web server logs for unusual requests targeting /swagger-ui/index.html with suspicious configUrl parameters. 5. Educate users about the risk of clicking on untrusted links that may lead to malicious Swagger UI pages. 6. Apply patches or updates from the vendor as soon as they become available. 7. Consider deploying Web Application Firewalls (WAF) with rules to detect and block XSS payloads targeting Swagger UI endpoints. 8. Conduct regular security assessments and penetration testing focusing on API documentation interfaces and related components.

Description

A vulnerability was found in yangzongzhuan RuoYi up to 4.8.1. It has been rated as problematic. This issue affects some unknown processing of the file /swagger-ui/index.html of the component Swagger UI. The manipulation of the argument configUrl leads to cross site scripting. The attack may be initiated remotely.

References

Community reviews

Loading reviews…