# CVE-2024-12870: Stored Cross-site Scripting (XSS) in infiniflow/ragflow

- Severity: Medium 5.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-03-20T10:10:45.160Z
- Modified: 2026-06-17T07:00:40.200Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: @huntr_ai

## Description

A stored cross-site scripting (XSS) vulnerability exists in infiniflow/ragflow, affecting the latest commit on the main branch (cec2080). The vulnerability allows an attacker to upload HTML/XML files that can host arbitrary JavaScript payloads. These files are served with the 'application/xml' content type, which is automatically rendered by browsers. This can lead to the execution of arbitrary JavaScript in the context of the user's browser, potentially allowing attackers to steal cookies and gain unauthorized access to user files and resources. The vulnerability does not require authentication, making it accessible to anyone with network access to the instance.

(As written by CVE List.)

## Affected

- infiniflow infiniflow/ragflow: from unspecified up to latest

## References

- <https://huntr.com/bounties/d6b497d2-5c95-4abc-8033-04b8068fed65>

## Sources

- CVE List: [CVE-2024-12870](https://www.cve.org/CVERecord?id=CVE-2024-12870), CVE Terms of Use, modified 2025-03-20
- NVD: [CVE-2024-12870](https://nvd.nist.gov/vuln/detail/CVE-2024-12870), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-12870 · Whole record: https://cve.day/CVE-2024-12870.json · Rebuilt by cve.day 2026-11-25T22:58:52.365Z
