Advisory

GO-2023-1751

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

Summary

Improper sanitization of CSS values in html/template

Details

Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, if executed with untrusted input.

Severity

Not rated by the source.

Dates

Published
2023-05-05 21:10 UTC
Modified
2026-02-04 04:31 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