Vulnerability · Published Aug 27, 2026 · Assigned by VulDB
CVE-2026-81833RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injection
Medium 5.5
In plain English
A medium-severity code injection in Roo-Code from RooCodeInc. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities).
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| RooCodeInc | Roo-Code | 3.51.03.51.1 |
Weakness: CWE-94, CWE-74 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-396166 | RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injection vdb-entry, technical-description
- VDB-396166 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-81833 | CVE Analysis and Report third-party-advisory
- Submit #864283 | Roo-Code v3.51.1 Code Injection third-party-advisory
- https://gist.github.com/tchen200311/d77f66ef70c88f7c55c84a3aaeecc100 exploit