# CVE-2023-29400: Improper handling of empty HTML attributes in html/template

- Severity: High 7.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.09%, higher than 65% of CVEs (2026-11-30)
- Published: 2023-05-05T21:10:24.000Z
- Modified: 2026-09-08T08:47:48.423Z
- Also known as: GO-2023-1753, BIT-GOLANG-2023-29400
- Related: CGA-7g62-qwvm-mvgp
- Weaknesses: CWE-74, CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## Description

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.

(As written by CVE List.)

## Affected

- html/template: before 1.19.9; from 1.20.0-0 before 1.20.4
- stdlib (Go): before 1.19.9; from 1.20.0-0 before 1.20.4
- golang go: before 1.19.9; from 1.20.0 before 1.20.4
- golang (Bitnami): before 1.19.9; from 1.20.0 before 1.20.4

## Every score

- CISA-ADP: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/issue/59722> (fix, issue-tracking, patch, report)
- <https://go.dev/cl/491617> (fix, patch)
- <https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU> (discussion, mailing-list, release-notes, web)
- <https://pkg.go.dev/vuln/GO-2023-1753> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20241213-0005/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29400> (web)

## Sources

- CVE List: [CVE-2023-29400](https://www.cve.org/CVERecord?id=CVE-2023-29400), CVE Terms of Use, modified 2025-01-24
- Go Vulnerability Database: [GO-2023-1753](https://pkg.go.dev/vuln/GO-2023-1753), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-29400](https://nvd.nist.gov/vuln/detail/CVE-2023-29400), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2023-29400](https://osv.dev/vulnerability/BIT-GOLANG-2023-29400), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-29400 · Whole record: https://cve.day/CVE-2023-29400.json · Rebuilt by cve.day 2026-11-25T22:58:24.101Z
