The AI Agent API endpoint (POST /apps/:appId/agent) lacks CSRF protection. An attacker can craft a malicious page that, when visited by an authenticated dashboard user, submits requests to the agent endpoint using the victim's session.
The fix adds CSRF middleware to the agent endpoint and embeds a CSRF token in the dashboard page.
Remove the agent configuration block from your dashboard configuration. Dashboards without an agent config are not affected.
{
"github_reviewed_at": "2026-02-25T18:59:58Z",
"nvd_published_at": "2026-02-25T03:16:05Z",
"severity": "HIGH",
"cwe_ids": [
"CWE-352"
],
"github_reviewed": true
}