CVE-2026-81833 RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injection
Remote attackers can execute arbitrary code via the optimizeQuery function in the unsupported Roo-Code developer tool.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-81833?
CVE-2026-81833 is a medium-severity code injection vulnerability in RooCodeInc Roo-Code, published on 27 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
A security flaw has been discovered in RooCodeInc Roo-Code up to 3.51.1. Affected by this vulnerability is the function optimizeQuery of the file src/utils/helpers.ts of the component CodeIndexManager. Performing a manipulation results in code injection. Remote exploitation of the attack is possible. The exploit has been released to the public and may be used for attacks. Multiple isses were reported to the vendor beforehand. They explain, that "they all apply to Roo Code, a project we no longer support - the repository was archived a while ago, and we don't encourage anyone to use it." This vulnerability only affects products that are no longer supported by the maintainer.
Which versions are affected by CVE-2026-81833?
How do I fix CVE-2026-81833?
No fix has been published for CVE-2026-81833 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-81833 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-81833 exists.
Sources
Also known as GHSA-88j7-xhq4-rhh3.