Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to RAGFlow (PR:L)
-
DeliveryStore document image with XSS payload
-
ExploitImages API serves it with renderable content type
-
ExecutionVictim opens image in browser
-
ImpactInjected 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
A vulnerability in infiniflow/ragflow versions v0.12.0 allows for remote code execution. Rated critical severity (CVSS 9
Path traversal vulnerability in RAGFlow RAG engine version 0.23.1 allows unauthenticated attackers to read arbitrary fil
In infiniflow/ragflow versions 0.12.0, the `web_crawl` function in `document_app.py` contains multiple vulnerabilities.
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. Rated high severity (CVSS 8.9), this vulnerabilit
RAGFlow versions prior to 0.22.0 generate API keys and beta assistant/agent share tokens with a predictable scheme, lett
The `add_llm` function in `llm_app.py` in infiniflow/ragflow version 0.11.0 contains a remote code execution (RCE) vulne
Remote code execution in RAGFlow versions prior to 0.23.0 allows a low-privileged authenticated user (a normal login acc
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine based on deep document understanding. Rated high s
A Server-Side Request Forgery (SSRF) vulnerability exists in infiniflow/ragflow version 0.12.0. Rated high severity (CVS
RAGFlow 0.13.0 suffers from improper access control in document-hooks.ts, allowing unauthorized access to user documents
A vulnerability in infiniflow/ragflow version RAGFlow-0.13.0 allows for partial account takeover via insecure data query
Server-side template injection in RAGFlow 0.24.0 and earlier allows any authenticated user to execute arbitrary operatin
EUVD-2026-117013
GHSA-8jq6-8g6v-g3cr
NVD
CVE.org
EPSS
VulDB
Exploit-DB