Lucene search

K
cvelistGoCVELIST:CVE-2023-29400
HistoryMay 11, 2023 - 3:29 p.m.

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

2023-05-1115:29:24
Go
www.cve.org
cve-2023-29400
html normalization
template injection

8.8 High

AI Score

Confidence

High

0.001 Low

EPSS

Percentile

49.8%

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.

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "html/template",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "html/template",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.19.9",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.20.0-0",
        "lessThan": "1.20.4",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "appendCmd"
      },
      {
        "name": "htmlNospaceEscaper"
      },
      {
        "name": "Template.Execute"
      },
      {
        "name": "Template.ExecuteTemplate"
      }
    ],
    "defaultStatus": "unaffected"
  }
]