{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:infiniflow:ragflow:0.17.2:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0.17.2"
              },
              {
                "last_affected": "0.17.2"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "baf3b9be7c759ca54b6ee8778411c86e7263ee7f"
            },
            {
              "last_affected": "baf3b9be7c759ca54b6ee8778411c86e7263ee7f"
            }
          ],
          "repo": "https://github.com/infiniflow/ragflow",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.17.2"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51462.json"
  },
  "details": "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.",
  "id": "CVE-2025-51462",
  "modified": "2026-08-12T03:51:27.056930678Z",
  "published": "2025-07-22T00:00:00Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51462.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-51462"
    },
    {
      "type": "FIX",
      "url": "https://github.com/infiniflow/ragflow/pull/7250"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/infiniflow/ragflow"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.gecko.security/blog/cve-2025-51462"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}