CVE-2026-81833
RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injection
- State
- Published
- Severity
- 5.1 Medium
- Published
- Aug 27, 2026
- Updated
- Aug 31, 2026
- Reserved
- Aug 27, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 5.1 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P | VulDB |
| 3.1 | 5.5 Medium | 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 | VulDB |
| 3.0 | 5.5 Medium | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R | VulDB |
| 2.0 | 6.5 Medium | AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR | VulDB |
Weaknesses
Affected Products
| Product | Versions |
|---|---|
Roo-CodeRooCodeInc |
|
References
- VDB-396166 | RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injectionvdb-entrytechnical-description
- VDB-396166 | CTI Indicators (IOB, IOC, TTP, IOA)signaturepermissions-required
- CVE-2026-81833 | CVE Analysis and Reportthird-party-advisory
- Submit #864283 | Roo-Code v3.51.1 Code Injectionthird-party-advisory
- https://gist.github.com/tchen200311/d77f66ef70c88f7c55c84a3aaeecc100exploit
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.