Skip to main content

RAGFlow CVE-2026-121928

| EUVDEUVD-2026-117013 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-04 VulDB GHSA-8jq6-8g6v-g3cr
2.0
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to RAGFlow (PR:L)
  2. Delivery
    Store document image with XSS payload
  3. Exploit
    Images API serves it with renderable content type
  4. Execution
    Victim opens image in browser
  5. Impact
    Injected script runs in victim's session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a valid low-privileged RAGFlow account (CVSS PR:L) to store or supply a document image through the Images API, and a victim must subsequently view that image in a browser (UI:P), at which point attacker-controlled content is rendered as active markup/script in the victim's authenticated session. Limiting factors that reduce realistic risk below the raw network vector: authentication is mandatory (no anonymous exploitation), victim interaction is required so it is not self-propagating, impact is confined to limited integrity within the RAGFlow web context (no confidentiality or availability impact per the vendor vector), and only RAGFlow instances up to 0.27.2 are affected. The exact triggering input is not fully described in the available sources; the patch indicates it relates to how image responses derive their content type and to missing per-document ownership/access checks.

Impact

This is a medium-severity, authenticated, user-interaction-dependent stored/reflected cross-site scripting issue (CWE-79), not a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N, score 5.1) indicates network reach but requires low-privileged authentication (PR:L) and passive victim interaction (UI:P), with only limited integrity impact and no confidentiality or availability impact per the vendor. The exploit-maturity metric E:P and VulDB's description claim that a public exploit exists, raising practical concern, but there is no CISA KEV listing (not actively exploited per available data) and no EPSS score was provided, so widespread automated exploitation cannot be inferred. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real but routine-priority issue to address in the normal patch cycle. Two data caveats: the description names api/utils/file_utils.py (Images API) while the actual patch PR #19818 modifies api/apps/restful_apis/document_api.py and api/db/services/document_service.py - verify the affected code path with the vendor; and the single reporting source is VulDB, with the public-exploit claim not independently verified.

Exploit ScenarioDerived

A low-privileged authenticated user stores or supplies a document image that the Images API later serves back with a content type that causes a browser to render attacker-controlled markup instead of a safe image, so that when another user views it, injected JavaScript executes in the victim's authenticated RAGFlow session. VulDB reports a public exploit and the CVSS exploit maturity is E:P (Proof-of-Concept), but this is a claimed public PoC and is not verified as working exploit code in the provided data. The fix changes image content-type handling to byte-based sniffing (rejecting non-images) and adds per-document access-control checks.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 04, 2026

Stored/reflected cross-site scripting in InfiniFlow RAGFlow through 0.27.2 allows an authenticated user who can supply document images through the Images API to have attacker-controlled content rendered as active markup in another user's browser session when that image is viewed. Exploitation requires a valid low-privileged account and victim interaction, and impact is confined to limited integrity within the RAGFlow web context, with no confidentiality or availability impact per the assessed vector. A public proof-of-concept reference exists but is not verified as working exploit code, and there is no CISA KEV entry; the vendor addressed the flaw in 0.27.3.

RemediationAI

Vendor-released patch: upgrade RAGFlow to 0.27.3 (https://github.com/infiniflow/ragflow/releases/tag/v0.27.3), which incorporates PR 19818 / commit 9ea0246f8d453a144fb4f903d163b2ba6b91ed2c; the vendor states that upgrading the affected component addresses the issue and the advisory documents no separate workaround, so upgrading is the only complete fix. Deployments that cannot move to 0.27.3 immediately should note that exploitation requires a valid low-privileged RAGFlow account (PR:L) plus victim interaction, so reducing which accounts are permitted to upload or create document images, and restricting the Images API to trusted users or internal networks, shrinks the attack surface while the upgrade is scheduled; the trade-off is loss of self-service image upload for untrusted or external users. Verifying the fix is applied can be done by confirming the new owner-checked /documents/<doc_id>/thumbnail and /documents/<doc_id>/images/<image_id> routes respond in place of the legacy /api/v1/documents/images/{dataset_id}-{thumbnail} path.

Affected VersionsENISA

ragflow 0.27.1
ragflow 0.27.0
ragflow 0.27.2

Affected Packages

euvd ragflow no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is CWE-79 cross-site scripting in RAGFlow's document/image serving surface, which is implemented as Flask-style routes in the api module (for example the document image, thumbnail, and list-thumbnails handlers in api/apps/restful_apis/document_api.py) backed by api/db/services/document_service.py. The public patch shows two root causes being corrected. First, image responses derived their Content-Type from the file extension via a helper (_content_type_for_document_image) that could fall back to application/octet-stream, and the patch replaces this with byte-level content sniffing (_detect_image_content_type_from_bytes) plus a hard failure when no image type is detected, so attacker-supplied payloads cannot be served back under a mislabeled or permissive content type. Second, handlers returned stored objects based on a composite {dataset_id}-{object_key} identifier without verifying that the requesting user could access the owning document, and the patch adds DocumentService.accessible checks, a new /documents/<doc_id>/thumbnail and /documents/<doc_id>/images/<image_id> route pair, and image_belongs_to_document / _find_image_document_id lookups against the doc store so an image can only be retrieved through a document the caller owns. Authentication is enforced by login_required(auth_types=[AUTH_JWT, AUTH_API, AUTH_BETA]) on the affected routes, matching the assessed PR:L precondition. The CVE description points at api/utils/file_utils.py while the referenced fix commit 9ea0246f8d453a144fb4f903d163b2ba6b91ed2c and PR 19818 modify the document API and document service modules, so the exact triggering input is not described in the available sources. The CPE entry cpe:2.3:a:infiniflow:ragflow:*:*:*:*:*:*:*:* covers all releases up to and including 0.27.2.

Know when Ragflow gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.4 MEDIUM

Authenticated low-priv user injects the payload (PR:L) and a victim must view it (UI:R); script executes in the victim's browser context (S:C) with limited confidentiality and integrity impact and no availability impact.

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Severity Changed
Nov 04, 2026 - 19:22 NVD
MEDIUM LOW
CVSS changed
Nov 04, 2026 - 19:22 NVD
5.1 (MEDIUM) 2.0 (LOW)

DescriptionCVE.org

A vulnerability was identified in InfiniFlow RAGFlow up to 0.27.2. This issue affects some unknown processing of the file api/utils/file_utils.py of the component Images API. The manipulation leads to cross site scripting. It is possible to initiate the attack remotely. The exploit is publicly available and might be used. Upgrading to version 0.27.3 is capable of addressing this issue. The identifier of the patch is 9ea0246f8d453a144fb4f903d163b2ba6b91ed2c. Upgrading the affected component is advised.

Threat Intelligence Overview

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Low
niche open-source RAG/LLM framework, limited enterprise production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2024-12433 CRITICAL POC
9.8 Mar 20

A vulnerability in infiniflow/ragflow versions v0.12.0 allows for remote code execution. Rated critical severity (CVSS 9

CVE-2026-24770 CRITICAL POC
9.8 Jan 27

Path traversal vulnerability in RAGFlow RAG engine version 0.23.1 allows unauthenticated attackers to read arbitrary fil

CVE-2024-12450 CRITICAL POC
9.8 Mar 20

In infiniflow/ragflow versions 0.12.0, the `web_crawl` function in `document_app.py` contains multiple vulnerabilities.

CVE-2025-27135 HIGH POC
8.9 Feb 25

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. Rated high severity (CVSS 8.9), this vulnerabilit

CVE-2025-69286 HIGH POC
8.9 Dec 31

RAGFlow versions prior to 0.22.0 generate API keys and beta assistant/agent share tokens with a predictable scheme, lett

CVE-2024-10131 HIGH POC
8.8 Oct 19

The `add_llm` function in `llm_app.py` in infiniflow/ragflow version 0.11.0 contains a remote code execution (RCE) vulne

CVE-2025-68700 HIGH POC
8.6 Dec 31

Remote code execution in RAGFlow versions prior to 0.23.0 allows a low-privileged authenticated user (a normal login acc

CVE-2025-25282 HIGH POC
8.1 Feb 21

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding. Rated high s

CVE-2024-12779 HIGH POC
7.5 Mar 20

A Server-Side Request Forgery (SSRF) vulnerability exists in infiniflow/ragflow version 0.12.0. Rated high severity (CVS

CVE-2024-53450 HIGH POC
7.5 Dec 09

RAGFlow 0.13.0 suffers from improper access control in document-hooks.ts, allowing unauthorized access to user documents

CVE-2024-12880 MEDIUM POC
6.5 Mar 20

A vulnerability in infiniflow/ragflow version RAGFlow-0.13.0 allows for partial account takeover via insecure data query

CVE-2026-45312 CRITICAL
9.9 May 29

Server-side template injection in RAGFlow 0.24.0 and earlier allows any authenticated user to execute arbitrary operatin

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy