# CVE-2026-61707 - SOCFortress CoPilot: Stored case-report template injection permits backend code execution

DevFeed: [CVE-2026-61707 - SOCFortress CoPilot: Stored case-report template injection permits backend code execution](<https://devfeed.tech/articles/cve-2026-61707-socfortress-copilot-stored-case-report-template-injection-permits-backend-code-execution-106985.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-61707>)

Author: CVEFEED.io; github.com

Published: 2026-10-29T22:17:05Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [execution](<https://devfeed.tech/topics/execution.md>), [Credential theft](<https://devfeed.tech/topics/credential-theft.md>), [CRUD](<https://devfeed.tech/topics/crud.md>), [Template](<https://devfeed.tech/topics/template.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [backend](<https://devfeed.tech/tags/backend.md>), [code-execution](<https://devfeed.tech/tags/code-execution.md>), [commands](<https://devfeed.tech/tags/commands.md>), [copilot](<https://devfeed.tech/tags/copilot.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [critical](<https://devfeed.tech/tags/critical.md>), [cve-2026-61707](<https://devfeed.tech/tags/cve-2026-61707.md>), [execution](<https://devfeed.tech/tags/execution.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [incident](<https://devfeed.tech/tags/incident.md>), [python](<https://devfeed.tech/tags/python.md>), [report](<https://devfeed.tech/tags/report.md>), [root](<https://devfeed.tech/tags/root.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [siem](<https://devfeed.tech/tags/siem.md>), [template](<https://devfeed.tech/tags/template.md>), [version](<https://devfeed.tech/tags/version.md>)

## AI overview

Before version 0.1.76, SOCFortress CoPilot lets the lowest-privilege `customer_user` upload and replace globally stored case-report templates; the upload route checks filename-derived MIME type but not template content or customer scope. When an admin or analyst generates a DOCX or PDF report, non-sandboxed Jinja2 rendering evaluates attacker-controlled expressions as backend Python. In the reported deployment, commands run as root, potentially exposing all tenants' incident and SIEM data and stored connector credentials. The HTML/PDF path also permits local-file reads and requests to internal services. The issue is fixed in version 0.1.76.

## Source excerpt

CVE ID :CVE-2026-61707 Published : Oct. 29, 2026, 10:17 p.m. | 1 hour, 5 minutes ago Description :SOCFortress CoPilot focuses on providing a single pane of glass for all your security operations needs. Prior to 0.1.76, in the reported deployment, case-report templates uploaded by `customer_user`, the lowest-privilege portal role, are later executed by non-sandboxed Jinja2 engines when an admin or analyst generates a report. The `/case-report-template/upload` route in `backend/app/incidents/routes/db_operations.py` validates only the filename-derived MIME type, not the template content. Templates share a global store without customer_code scoping, and `customer_user` can also list, download and delete them, allowing an attacker to replace a legitimate default template under the same name. In `backend/app/incidents/services/reports.py`, `render_document_with_context` uses `DocxTemplate` without a sandbox; in `backend/app/incidents/services/reports_pdf.py`, `render_html_template` uses a non-sandboxed `Environment` without autoescaping. Normal privileged requests to `POST /api/incidents/report/generate-report-docx` or `/generate-report-pdf` therefore evaluate attacker-controlled Jinja expressions as Python on the backend. The reported deployment executes commands as root, exposing all tenants' incident and SIEM data and stored connector credentials. The HTML/PDF wkhtmltopdf renderer additionally permits local-file reads and requests to internal services. This issue is fixed in version 0.1.76. Severity: 9.0 | CRITICAL Visit the link for more details, such as CVSS details, affected products, timeline, and more...