Improper Neutralization of Special Elements Used in a Template Engine Affecting std/html/template package, versions <1.19.9>=1.20.0-0 <1.20.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-STDHTMLTEMPLATE-14548481
  • published6 Jan 2026
  • disclosed5 May 2023
  • creditJuho Nurminen

Introduced: 5 May 2023

CVE-2023-29400  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade std/html/template to version 1.19.9, 1.20.4 or higher.

Overview

std/html/template is a Go standard library package std/html/template

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine.

Go Vulnerability Report:
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.

CVSS Base Scores

version 4.0
version 3.1