Description
Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.
Published: 2026-08-13
Score: 6.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a flaw in Go’s html/template package that mishandles JavaScript regular expression syntax. By prematurely closing an unescaped slash, an attacker can inject arbitrary HTML or JavaScript content into a page rendered by the template. This flaw is classified as CWE‑79 and can compromise the integrity of client‑side content, allowing attackers to execute scripts in users’ browsers.

Affected Systems

Any Go application that utilizes the standard library package html/template may be affected. The CVE description does not list specific Go releases, so the exact affected versions are unknown. The fix for issue GO‑2026‑6091 is referenced in the advisory links.

Risk and Exploitability

The EPSS score is under 1 %, indicating a very low probability of exploitation as of now. The CVSS score of 6.1 reflects moderate severity, and the vulnerability is not listed in the CISA KEV catalog. An attacker would need to supply crafted input that reaches the html/template processor in a JavaScript context. If successful, arbitrary script injection could lead to credential theft, defacement, or other client‑side attacks.

Generated by OpenCVE AI on August 14, 2026 at 18:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a Go release that includes the fix for GO‑2026‑6091.
  • Sanitize or escape all untrusted input before it is rendered by the html/template package.
  • Apply a strong Content‑Security‑Policy to restrict script execution in client browsers.

Generated by OpenCVE AI on August 14, 2026 at 18:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Fri, 14 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 14 Aug 2026 01:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-79

Thu, 13 Aug 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library html/template
Vendors & Products Go Standard Library
Go Standard Library html/template

Thu, 13 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.
Title Fix Javascript regexp context tracking in html/template
References

Subscriptions

Go Standard Library Html/template
cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-08-14T15:32:29.852Z

Reserved: 2026-06-23T15:10:49.353Z

Link: CVE-2026-56858

cve-icon Vulnrichment

Updated: 2026-08-14T15:32:20.906Z

cve-icon NVD

Status : Received

Published: 2026-08-13T22:17:22.207

Modified: 2026-08-14T16:16:57.367

Link: CVE-2026-56858

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-13T21:58:53Z

Links: CVE-2026-56858 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T18:15:05Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')