Vulnerabilities in pkg:golang/github.com/stefanprodan/podinfo

PACKAGE
Advisory Identifier: GHSA-q23m-vm9r-5745
Advisory Summary

CVE-2026-43644 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting podinfo libraries in the Go ecosystem. The issue involves cross-site scripting vulnerability in the /echo and /api/echo endpoints. Remediation is available by upgrading affected packages to version 1.8.1-0.20260519111337-cbebb20fd485.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/stefanprodan/podinfo

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/stefanprodan/podinfo. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q23m-vm9r-5745 CVE-2026-43644 MODERATE podinfo: cross-site scripting vulnerability in the /echo and /api/echo endpoints
GHSA-mw8w-q3f7-2v85 CVE-2025-70849 LOW Podinfo affected by Arbitrary File Upload that leads to Stored Cross-Site Scripting (XSS)

CVE-2026-43644 at a Glance

CVE Identifier CVE-2026-43644
GHSA Identifier GHSA-q23m-vm9r-5745
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product podinfo
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2026-43644

To remediate this vulnerability, upgrade all affected podinfo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/stefanprodan/podinfo fixed: 1.8.1-0.20260519111337-cbebb20fd485
Upgrade github.com/stefanprodan/podinfo to 1.8.1-0.20260519111337-cbebb20fd485
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/stefanprodan/podinfo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-43644, inspect your project dependencies for podinfo:

inspect dependencies for github.com/stefanprodan/podinfo

Analyze the terminal output to locate any version of podinfo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.1-0.20260519111337-cbebb20fd485), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In podinfo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-43644 Affected podinfo Versions

1 component(s)
Fixed Versions:
1.8.1-0.20260519111337-cbebb20fd485
Product / Package Ecosystem Affected Versions Fixed Version
github.com/stefanprodan/podinfo
Go
< 1.8.1-0.20260519111337-cbebb20fd485
1.8.1-0.20260519111337-cbebb20fd485

References

Frequently Asked Questions

What is CVE-2026-43644?
CVE-2026-43644 is a security vulnerability in podinfo involving cross-site scripting vulnerability in the /echo and /api/echo endpoints under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which podinfo versions are affected?
Affected versions include releases prior to 1.8.1-0.20260519111337-cbebb20fd485 across affected packages: github.com/stefanprodan/podinfo.
What version fixes CVE-2026-43644?
Upgrading to 1.8.1-0.20260519111337-cbebb20fd485 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/stefanprodan/podinfo affected?
Yes, github.com/stefanprodan/podinfo is affected in releases prior to 1.8.1-0.20260519111337-cbebb20fd485. Upgrade your dependency to 1.8.1-0.20260519111337-cbebb20fd485 or later.
What is the CVSS score of CVE-2026-43644?
CVE-2026-43644 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-43644?
CVE-2026-43644 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Go dependencies for CVE-2026-43644?
Run the dependency tree command: 'inspect dependencies for github.com/stefanprodan/podinfo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-q23m-vm9r-5745",
  "modified" : "2026-05-20T15:48:00Z",
  "published" : "2026-05-14T15:31:58Z",
  "aliases" : [ "CVE-2026-43644" ],
  "summary" : "podinfo: cross-site scripting vulnerability in the /echo and /api/echo endpoints",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/stefanprodan/podinfo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.8.1-0.20260519111337-cbebb20fd485"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-43644"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stefanprodan/podinfo/issues/474"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stefanprodan/podinfo/pull/480"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stefanprodan/podinfo/commit/cbebb20fd48588d36fc7ff3e874c128eb89692f4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/Niccolo10/Security-Advisories/blob/main/CVE-2026-43644/cve-2026-43644.md"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/stefanprodan/podinfo"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/stefanprodan/podinfo/releases/tag/6.12.0"
  }, {
    "type" : "WEB",
    "url" : "https://www.vulncheck.com/advisories/podinfo-reflected-xss-via-echo-endpoint"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-05-20T15:48:00Z",
    "nvd_published_at" : "2026-05-14T13:16:18Z"
  }
}