<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Lightrag-Hku (&lt;= 1.5.3) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/lightrag-hku--1.5.3/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 20 Jul 2026 21:46:35 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/lightrag-hku--1.5.3/feed.xml" rel="self" type="application/rss+xml"/><item><title>LightRAG CORS Misconfiguration Allows Credentialed Cross-Origin Requests (CVE-2026-61736)</title><link>https://feed.craftedsignal.io/briefs/2026-07-lightrag-cors-vulnerability/</link><pubDate>Mon, 20 Jul 2026 21:46:35 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-lightrag-cors-vulnerability/</guid><description>The LightRAG application, specifically the 'lightrag-hku' package, contains a critical vulnerability (CVE-2026-61736) due to its default Cross-Origin Resource Sharing (CORS) configuration, enabling any malicious website to perform authenticated API calls on behalf of a logged-in LightRAG user, leading to unauthorized data exfiltration or destructive actions.</description><content:encoded><![CDATA[<p>A critical Cross-Origin Resource Sharing (CORS) misconfiguration, identified as CVE-2026-61736, affects the LightRAG application's <code>lightrag-hku</code> package in versions prior to 1.5.4. The vulnerability stems from the default server configuration in <code>lightrag/api/config.py</code> and <code>lightrag/api/lightrag_server.py</code>, which sets <code>CORS_ORIGINS</code> to <code>*</code> (wildcard) while also enabling <code>allow_credentials=True</code> for Starlette's <code>CORSMiddleware</code>. This combination causes the server to echo the requesting origin in preflight responses, effectively whitelisting any origin for credentialed cross-origin requests. Attackers can leverage this flaw by hosting a malicious website that performs authenticated API calls to LightRAG on behalf of a victim user who is logged into LightRAG, allowing for data exfiltration of documents and knowledge graphs or the execution of destructive actions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker hosts a malicious website (e.g., <code>attacker.com</code>) designed to interact with LightRAG.</li>
<li>A victim, who is logged into their LightRAG instance, navigates to the attacker's malicious website.</li>
<li>Embedded JavaScript on <code>attacker.com</code> sends a cross-origin HTTP request to the LightRAG server (e.g., to the <code>/login</code> endpoint) with the <code>credentials: &quot;include&quot;</code> option.</li>
<li>The LightRAG server, due to its misconfigured <code>CORSMiddleware</code> (<code>allow_origins=[&quot;*&quot;]</code> and <code>allow_credentials=True</code>), processes the preflight request and responds with <code>Access-Control-Allow-Origin</code> set to <code>attacker.com</code> and <code>Access-Control-Allow-Credentials: true</code>.</li>
<li>The victim's browser, observing the permissive CORS headers, allows the malicious script to continue making authenticated requests using the victim's session cookies or authentication tokens.</li>
<li>The malicious script then makes subsequent authenticated GET requests to sensitive LightRAG API endpoints (e.g., <code>/documents</code>) to retrieve user data.</li>
<li>The LightRAG server responds to these requests as if they were legitimate, returning sensitive information like documents or knowledge graph data.</li>
<li>The attacker's website subsequently exfiltrates the retrieved sensitive data or issues commands to perform destructive actions, such as deleting the document store.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>The vulnerability represents a permissive cross-domain policy (CWE-942) that allows any website visited by an authenticated LightRAG user to silently make authenticated API requests. The direct consequence is unauthorized access and manipulation of user data. Attackers can exfiltrate sensitive information, including all documents and knowledge graph data, or perform destructive actions such as deleting the entire document store, without the victim's explicit consent or knowledge. There are no reported numbers of victims or specific sectors targeted, but any organization using vulnerable LightRAG versions is at risk.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-61736 by upgrading the <code>lightrag-hku</code> package to version 1.5.4 or later immediately.</li>
<li>Review LightRAG web server access logs for unusual <code>Origin</code> headers combined with requests to sensitive API endpoints, especially those not matching your known allowed origins.</li>
<li>Ensure that the <code>CORS_ORIGINS</code> configuration for LightRAG is set to specific, trusted domains rather than a wildcard (<code>*</code>) when <code>allow_credentials</code> is <code>True</code>.</li>
<li>Implement security best practices for web applications, including secure credential handling and strict CORS policies.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>cors-misconfiguration</category><category>web-vulnerability</category><category>data-exfiltration</category><category>cve</category></item></channel></rss>