CVE-2023-29400

published 11 May 2023 · updated 12 Nov 2026

Improper handling of empty HTML attributes in html/template

7.3HighCVSS 7.3EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.19.9 and 1.20.4.

Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.19.9, >=1.20.0-0 <1.20.41.19.9, 1.20.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-29400 severity on Zeptric[![CVE-2023-29400](https://zeptric.io/badge/cve/CVE-2023-29400.svg)](https://zeptric.io/cve/CVE-2023-29400)