ADVISORIES

openEuler Security Advisory

OESA-2023-1294

golang security update

Details

The Go Programming Language.

Security Fix(es):

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.(CVE-2023-29400)

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.(CVE-2023-24539)

Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized during execution.(CVE-2023-24540)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP1golang
All versions before 1.15.7-27.oe1 (fixed in 1.15.7-27.oe1)
openEuler:20.03-LTS-SP3golang
All versions before 1.15.7-27.oe1 (fixed in 1.15.7-27.oe1)
openEuler:22.03-LTSgolang
All versions before 1.17.3-18.oe2203sp1 (fixed in 1.17.3-18.oe2203sp1)
openEuler:22.03-LTS-SP1golang
All versions before 1.17.3-18.oe2203sp1 (fixed in 1.17.3-18.oe2203sp1)

References