An attacker exploited a remote code execution flaw in SGLang, an open-source inference engine, and ran code on one of NEAR AI’s inference servers last Sunday. The breach exposed account details for about 100 users and data from 18 AI agents on an older deployment.
Quick Take
- What happened: An attacker exploited a remote code execution vulnerability in SGLang to breach NEAR AI’s inference servers last Sunday
- Data stolen: Account details (email addresses, names, plan and balance information) for about 100 users and data from 18 AI agents including chat history, settings and logs
- Confidential mode compromised: The attacker could have seen requests processed on the affected server that day, including those sent in confidential mode inside a trusted execution environment (TEE)
- API keys exposed: Two customers’ NEAR AI Cloud API keys were exposed in logs and have been revoked
- What to do: NEAR AI has contacted affected users directly at security@near.ai; users who have not heard from the company do not need to do anything
In plain English
An attacker found a way to run their own code on a server that NEAR AI uses to process AI requests. NEAR AI is a company that provides AI services. The attacker got in last Sunday and was able to see some requests being processed that day, even ones that were supposed to be private. They also stole email addresses and names for about 100 people who used an older chat product, and took data from 18 AI assistants.
What you should do: If you use NEAR AI and they haven’t emailed you from security@near.ai, you don’t need to do anything. The company has fixed the problem and locked the attacker out.
What happened
The attacker exploited a remote code execution flaw in SGLang and gained access to one of NEAR AI’s inference servers last Sunday. SGLang is an open-source inference engine that NEAR AI runs inside trusted execution environments (TEEs) designed to keep requests private.
The attacker could see requests being processed on that server that day, including requests sent in confidential mode. According to NEAR AI, the TEE “does not protect against a vulnerability in the software running inside the environment,” which is how the attacker could reach requests there despite the TEE protections.
From the breach, the attacker moved further into NEAR AI’s systems and reached an internal system behind Private Chat, a product the company had already deprecated. The company confirmed that the attacker downloaded account details for about 100 users, including email addresses, names, and for some accounts, plan and balance information. The company found no sign that stored Private Chat conversations or uploaded files were accessed.
The attacker also reached 18 AI agents on an older deployment of NEAR AI Agents that did not run inside the company’s TEE. From those agents, the attacker took data including chat history, settings and logs. Two customers’ NEAR AI Cloud API keys were exposed in logs.
What NEAR AI has done
After detecting the attack, NEAR AI revoked all active sessions and administrator credentials, replaced all agent tokens and took Private Chat offline. The company deployed a fix for the SGLang flaw on all of its inference servers, rotated its remaining credentials and completed a full forensic review, according to its incident report.
The company revoked both exposed API keys. Access to its NEAR AI Cloud service has been restored.
NEAR AI reported the flaw to the SGLang project. The company has not identified the flaw by CVE number, named the affected SGLang versions, or said whether the project has released a fix.
What you should do
NEAR AI has contacted users whose account details or agents it confirmed were accessed. Affected users heard directly from security@near.ai, with the steps that apply to them.
As a precaution, the company asks users to be careful with messages about their account or balance that they did not ask for.
In a follow-up post yesterday, the company said users who have not heard from it do not need to do anything. The company has not said whether people whose requests passed through the affected server last Sunday were among those contacted.
What it means
The breach demonstrates that trusted execution environments do not protect against vulnerabilities in the software running inside them. Even when AI inference runs inside a TEE designed to keep requests private from the service provider, a flaw in the inference engine itself can expose those requests to an attacker.
In an October 15 technical write-up, Brave, the browser maker, said its Leo assistant runs chats with the GLM 5.3 Flash model inside a TEE operated by NEAR AI. NEAR AI has not said whether the affected server handled any of those chats.



