Skip to main content
VulnerabilityPublished

CVE-2024-42900: RuoYi · Cross-site Scripting

Affects RuoYiSource CVE Database V5

0

Not known to be exploited · CVSS 6.1 Medium.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
6.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 29% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 28 Aug 2024

  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 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHuby_project/RuoYipkg:github/y_project/RuoYiOther threatsAffected
  • <=4.7.9
Fixed in–

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

AI-suggested

To mitigate CVE-2024-42900, organizations should implement strict input validation and output encoding for the sql parameter in the createTable() function to neutralize any embedded scripts. Employ Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers. Until an official patch is released, consider disabling or restricting access to the /tool/gen/create endpoint to trusted users only or behind a VPN. Conduct security code reviews focusing on input handling in similar endpoints. Educate users about phishing risks and encourage cautious interaction with unexpected links or inputs. Monitor web application logs for suspicious requests targeting the vulnerable parameter. Additionally, update Ruoyi to the latest version once a patch addressing this vulnerability becomes available. Employ web application firewalls (WAFs) with rules to detect and block common XSS payloads targeting this endpoint.

Description

Ruoyi v4.7.9 and before was discovered to contain a cross-site scripting (XSS) vulnerability via the sql parameter of the createTable() function at /tool/gen/create.

References

Community reviews

Loading reviews…