Advisory

GO-2023-1753

Also known as: BIT-golang-2023-29400, CVE-2023-29400

Summary

Improper handling of empty HTML attributes in html/template

Details

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.

Severity

Not rated by the source.

Dates

Published
2023-05-05 21:10 UTC
Modified
2026-02-04 02:22 UTC

Affected packages and fixes

stdlib

Go · All systems

Affected

  • introduced 0, fixed 1.19.9, introduced 1.20.0-0, fixed 1.20.4 (semver)

Fixed versions

1.19.9, 1.20.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences