CVE-2025-51462: ragflow · Stored Cross-site Scripting (XSS)
Affects ragflowSource CVE Database V5
Not known to be exploited · CVSS 6.1 Medium.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% 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:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
GitHubinfiniflow/ragflowpkg:github/infiniflow/ragflowOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediate mitigation should focus on input validation and output encoding: sanitize all user inputs to the assistant greeting field to remove or neutralize any HTML or JavaScript content before storage.
- Modify or replace the markdown rendering pipeline to avoid using rehype-raw or ensure it is configured with strict sanitization rules to prevent raw HTML execution.
- Implement Content Security Policy (CSP) headers to restrict the execution of unauthorized scripts in browsers, mitigating the impact of any residual XSS.
- Conduct a thorough code review and security audit of all markdown rendering and user input handling components to identify and fix similar vulnerabilities.
- Educate users and administrators about the risks of stored XSS and encourage cautious handling of untrusted content.
- Monitor logs and user reports for suspicious activity that might indicate exploitation attempts.
- 8. Stay updated with vendor advisories and apply patches promptly once available.
Description
Stored Cross-site Scripting (XSS) vulnerability in api.apps.dialog_app.set_dialog in RAGFlow 0.17.2 allows remote attackers to execute arbitrary JavaScript via crafted input to the assistant greeting field, which is stored unsanitised and rendered using a markdown component with rehype-raw.