podinfo: cross-site scripting vulnerability in the /echo and /api/echo endpoints
Moderate severity
GitHub Reviewed
Published
May 14, 2026
to the GitHub Advisory Database
•
Updated May 20, 2026
Package
Affected versions
< 1.8.1-0.20260519111337-cbebb20fd485
Patched versions
1.8.1-0.20260519111337-cbebb20fd485
Description
Published by the National Vulnerability Database
May 14, 2026
Published to the GitHub Advisory Database
May 14, 2026
Reviewed
May 20, 2026
Last updated
May 20, 2026
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.
References