CVE-2026-28737: Go Net Http Cookie Httponly False

HTTP cookie is created with HttpOnly set to false. Sensitive cookies such as CSRF tokens or session identifiers must have HttpOnly set to true to prevent client-side JavaScript from reading cookie contents in the event of XSS.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2026-28737-go-net-http-cookie-httponly-false --engine opengrep

Description

HTTP cookie is created with HttpOnly set to false. Sensitive cookies such as CSRF tokens or session identifiers must have HttpOnly set to true to prevent client-side JavaScript from reading cookie contents in the event of XSS.