podinfo: cross-site scripting vulnerability in the /echo and /api/echo endpoints
Date: 2026-05
Affected: go/github.com/stefanprodan/podinfo
Attack vector: xss
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2026-43644
CWE: CWE-79
CVSS: 5.4 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N)

podinfo through 6.11.2 contains a reflected cross-site scripting vulnerability in the /echo and /api/echo endpoints where the echoHandler writes request body content directly to the response without setting explicit Content-Type or X-Content-Type-Options headers. Attackers can craft cross-origin HTML pages with auto-submitting forms containing script payloads in the request body, which are served as text/html due to Go's content type detection, allowing the reflected script to execute in the podinfo origin context when victims visit the attacker's page.


Mitigations:

Architectural layers (MAESTRO):