CVE-2025-7901 yangzongzhuan RuoYi Swagger UI index.html cross site scripting

Medium 5.3 Published Updated

Remote attackers can execute arbitrary scripts via the Swagger UI configUrl parameter in RuoYi, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-7901?

CVE-2025-7901 is a medium-severity cross-site scripting vulnerability in Ruoyi Ruoyi, published on 20 Jul 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-94, CWE-79

Which versions are affected by CVE-2025-7901?

It affects 1 product.

Products include Ruoyi Ruoyi.

How do I fix CVE-2025-7901?

No fix has been published for CVE-2025-7901 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-7901 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7901 exists.

All Ruoyi Ruoyi vulnerabilities

Sources

Also known as GHSA-rfpq-8997-wr58.

Is CVE-2025-7901 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free