ADVISORIES

Go Vulnerability Database

GO-2023-1752

Improper handling of JavaScript whitespace in html/template

Details

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.

Affected packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.19.9 (fixed in 1.19.9)
From 1.20.0-0 before 1.20.4 (fixed in 1.20.4)

References