p PatchFirst

CVE-2023-24540

CVE-2023-24540 · Improper handling of JavaScript whitespace in html/template

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 9.8 · Critical · EPSS 1.6% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • html/template

    Versions
    • ≥ 0, < 1.19.9: Affected (semver)
    • ≥ 1.20.0-0, < 1.20.4: Affected (semver)

    Update to 1.19.9; Update to 1.20.4

  • golang-1.19 Debian:12

    Versions
    • 1.19.10-1
    • 1.19.10-2
    • 1.19.11-1
    • 1.19.12-1
    • 1.19.12-2
    • 1.19.12-2~bpo11+1
    • 1.19.12-2~bpo12+1
    • 1.19.13-1
    • 1.19.13-1~bpo11+1
    • 1.19.13-1~bpo12+1
    • 1.19.8-2
    • 1.19.9-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →