Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2023-29400: html/template: improper handling of empty HTML attributes. Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input could result in output that would have unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags. CVE-2023-24540: html/template: improper handling of JavaScript whitespace. Not all valid JavaScript whitespace characters were 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-24539: html/template: improper sanitization of CSS values Angle brackets (<>) were not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character could result in unexpectedly closing the CSS context and allowing for injection of unexpected HMTL, if executed with untrusted input.
Fixed packages 8
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | golang | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-bin | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-docs | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-misc | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-race | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-shared | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-src | 0:1.19.9-1.amzn2023.0.1 |
| Amazon Linux · 2023 | golang-tests | 0:1.19.9-1.amzn2023.0.1 |
Vulnerabilities 3
-
Critical 9.8
Improper handling of JavaScript whitespace in html/template
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…
-
High 7.3
Improper sanitization of CSS values in html/template
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, i…
-
High 7.3
Improper handling of empty HTML attributes in html/template
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.