VDB
Sign up
CRITICAL9.8

GO-2023-1752

Improper handling of JavaScript whitespace in html/template

Quick fix

GO-2023-1752 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.19.9

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.19.9
Fixgo get stdlib@v1.19.9

References