Advisory

GO-2023-1752

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

Summary

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.

Severity

Not rated by the source.

Dates

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