Skip to main content
← All vulnerabilities
CVE-2023-24540GO-2023-1752BIT-GOLANG-2023-24540

Improper handling of JavaScript whitespace in html/template

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.19.9, 1.20.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • html/template

    fixed in 1.19.9; From 1.20.0-0 · fixed in 1.20.4

  • stdlibGo

    fixed in 1.19.9; From 1.20.0-0 · fixed in 1.20.4

References 4

go.dev

groups.google.com

pkg.go.dev