CVE-2023-29400: HTML Attribute Injection in Go html/template
- Vendor
- Golang
CVE-2023-29400 is an HTML attribute injection vulnerability in Go's html/template package. When a template action supplies an unquoted HTML attribute value and evaluates to an empty string, HTML normalization rules can cause the rendered output to be parsed differently than intended. Under affected template-use conditions, this behavior can permit injection of arbitrary attributes into HTML tags, bypassing the intended contextual escaping protections.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can alter the attributes and behavior of rendered HTML elements. The security consequences depend on the surrounding template and the injected attributes; arbitrary attribute injection does not by itself establish server-side code execution or complete system compromise. Red Hat rates the vulnerability Moderate, with a CVSS v3.1 score of 7.3 and low confidentiality, integrity, and availability impacts.
Mitigation
If you can’t patch tonight, do this now.
At the application level, avoid template actions in unquoted HTML attribute values; use properly quoted attribute values and review affected templates for empty-value behavior. Restrict access to vulnerable rendering functionality where feasible. OAuth authentication limits access to affected templates in OpenShift Container Platform and Red Hat Advanced Cluster Management for Kubernetes, reducing exposure to authenticated users. Red Hat lists no broadly applicable workaround meeting its Product Security mitigation criteria.
Remediation
Patch, then assume compromise.
Update Go to a vendor-supported release containing the CVE-2023-29400 fix, then rebuild and redeploy affected applications. The fix was applied to the Go 1.19 and 1.20 release branches and emits the filterFailsafe value for empty unquoted HTML attribute values. For packaged applications and container images, install the applicable vendor security updates rather than only updating the host toolchain. Confirmed product fixes include Red Hat Go Toolset 1.19.9-1.el7_9, RHACS 3.74.4, and RHACS 4.0.2.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-29400 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2023-29400 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-29400?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2023-29400.
- Is there a patch for CVE-2023-29400?
- Update Go to a vendor-supported release containing the CVE-2023-29400 fix, then rebuild and redeploy affected applications. The fix was applied to the Go 1.19 and 1.20 release branches and emits the filterFailsafe value for empty unquoted HTML attribute values.
- What products are affected by CVE-2023-29400?
- Golang Go.
- How severe is CVE-2023-29400?
- CVE-2023-29400 has a CVSS v3.1 score of 7.3 (High) and an EPSS score of 1.1% (65th percentile) as of Nov 19, 2026.
Recent activity
39 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.