# CVE-2026-81833: RooCodeInc Roo-Code CodeIndexManager helpers.ts optimizeQuery code injection

- Severity: Medium 5.1 (CVSS:4.0, scored by VulDB) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-27T19:45:10.936Z
- Modified: 2026-08-31T22:17:20.897Z
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- RooCodeInc Roo-Code: 3.51.0; 3.51.1

## Every score

- VulDB: CVSS: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: CVSS: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: CVSS: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: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://gist.github.com/tchen200311/d77f66ef70c88f7c55c84a3aaeecc100> (exploit)
- <https://vuldb.com/vuln/396166> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/396166/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-81833> (third-party-advisory)
- <https://vuldb.com/submit/864283> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-81833](https://www.cve.org/CVERecord?id=CVE-2026-81833), CVE Terms of Use, modified 2026-08-31
- NVD: [CVE-2026-81833](https://nvd.nist.gov/vuln/detail/CVE-2026-81833), Public domain, modified 2026-08-31

---

Page: https://cve.day/CVE-2026-81833 · Whole record: https://cve.day/CVE-2026-81833.json · Rebuilt by cve.day 2026-11-25T22:59:35.546Z
