ADVISORIES

Vulnerability

CVE-2023-39318

The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script> contexts, causing actions to be improperly escaped. This may be leveraged to perform an XSS attack.

79 advisories report this vulnerability, across 15 ecosystems.

Advisories

  • ALAS2-2023-2313

    Amazon Linux 2 2017.12 - ALAS2-2023-2313: important priority package update for golang

    Important Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 Amazon Linux Updated 3 January 2024
  • ALAS2023-2023-367

    Amazon Linux 2023 - ALAS2023-2023-367: Medium priority package update for golang

    Medium CVE-2023-39318CVE-2023-39319 Amazon Linux Updated 3 October 2023
  • ALPINE-CVE-2023-39318

    The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script>…

    CVE-2023-39318 Alpine Updated 17 November 2026
  • ALPINE-EDGE-CVE-2023-39318
    CVE-2023-39318 Alpine Updated 18 November 2026
  • ALSA-2023:7762

    Moderate: skopeo security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 AlmaLinux Updated 29 October 2026
  • ALSA-2023:7764

    Moderate: buildah security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 AlmaLinux Updated 29 October 2026
  • ALSA-2023:7765

    Moderate: podman security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 AlmaLinux Updated 29 October 2026
  • ALSA-2023:7766

    Moderate: containernetworking-plugins security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 AlmaLinux Updated 29 October 2026
  • ALSA-2024:0121

    Moderate: container-tools:4.0 security update

    CVE-2022-27664CVE-2022-2879CVE-2022-2880CVE-2022-41715 AlmaLinux Updated 29 October 2026
  • ALSA-2024:2160

    Moderate: toolbox security update

    CVE-2023-39318CVE-2023-39319CVE-2023-39326 AlmaLinux Updated 29 October 2026
  • AZL-28694

    CVE-2023-39318 affecting package golang for versions less than 1.20.10-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-28832

    CVE-2023-39318 affecting package msft-golang for versions less than 1.20.10-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-37386

    CVE-2023-39318 affecting package golang for versions less than 1.21.6-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-37494

    CVE-2023-39318 affecting package golang for versions less than 1.21.6-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-52735

    CVE-2023-39318 affecting package golang for versions less than 1.20.10-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-78980

    CVE-2023-39318 affecting package golang 1.25.7-1

    CVE-2023-39318 Azure Linux Updated 21 April 2026
  • AZL-98733

    CVE-2023-39318 affecting package golang 1.27.1-1

    CVE-2023-39318 Azure Linux Updated 16 September 2026
  • CGA-2944-x86v-qw72
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-43pq-3rxm-qj5w
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-47pv-626q-vj3h
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-4fm3-m7f9-wm6m
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-53vm-69fr-j52p
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-6mpp-8jmp-489c
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-763j-qq9m-26gh
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-7qj2-4h75-f68p
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-cmx2-79h8-q76x
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-cqh8-48c5-hfvv
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-fr2c-cwc4-3pxc
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-g5r3-hh3v-4w65
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-g8vp-mxjq-c223
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-hwhc-gpp5-34fp
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-j5p8-8fpp-qcrf
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-mm52-6q2r-467x
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-qch2-cv7q-4wh4
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-qvm5-p6v3-q2h3
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-qwm5-vghv-6j3f
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-r7rv-m3jq-jffr
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-wfqw-w9m9-272v
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-whq4-vg92-2rc2
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-wxhh-8vcr-q2xw
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • CGA-xc9j-wcpp-gjvj
    CVE-2023-39318 ChainguardWolfi Updated 5 November 2026
  • DEBIAN-CVE-2023-39318

    The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script>…

    CVE-2023-39318 Debian Updated 26 October 2026
  • ELSA-2023-7762

    ELSA-2023-7762: skopeo security update (MODERATE)

    Moderate CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Oracle Linux Updated 13 December 2023
  • ELSA-2023-7764

    ELSA-2023-7764: buildah security update (MODERATE)

    Moderate CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Oracle Linux Updated 14 December 2023
  • ELSA-2023-7765

    ELSA-2023-7765: podman security update (MODERATE)

    Moderate CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Oracle Linux Updated 14 December 2023
  • ELSA-2023-7766

    ELSA-2023-7766: containernetworking-plugins security update (MODERATE)

    Moderate CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Oracle Linux Updated 13 December 2023
  • ELSA-2024-0121

    ELSA-2024-0121: container-tools:4.0 security update (MODERATE)

    Moderate CVE-2022-27664CVE-2022-2879CVE-2022-2880CVE-2022-41715 Oracle Linux Updated 11 January 2024
  • ELSA-2024-2988

    ELSA-2024-2988: container-tools:ol8 security update (MODERATE)

    Moderate CVE-2018-25091CVE-2021-33198CVE-2021-34558CVE-2022-2879 Oracle Linux Updated 24 May 2024
  • GO-2023-2041

    Improper handling of HTML-like comments in script contexts in html/template

    CVE-2023-39318 Go Updated 4 February 2026
  • OESA-2023-1789

    golang security update

    High CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 openEuler Updated 18 August 2026
  • RHBA-2023:6364

    Red Hat Bug Fix Advisory: golang and delve bug fix and enhancement update

    CVE-2023-39318CVE-2023-39319CVE-2023-39321CVE-2023-39322 Red Hat Updated 13 November 2026
  • RHBA-2023:6928

    Red Hat Bug Fix Advisory: go-toolset:rhel8 bug fix and enhancement update

    CVE-2023-39318CVE-2023-39319CVE-2023-39321CVE-2023-39322 Red Hat Updated 13 November 2026
  • RHSA-2023:5008

    Red Hat Security Advisory: Red Hat build of MicroShift 4.14.0 security update

    CVE-2023-1260CVE-2023-2727CVE-2023-2728CVE-2023-39318 Red Hat Updated 13 November 2026
  • RHSA-2023:5009

    Red Hat Security Advisory: OpenShift Container Platform 4.14.0 security update

    Known exploited CVE-2022-27664CVE-2023-2727CVE-2023-2728CVE-2023-29409 Red Hat Updated 23 November 2026
  • RHSA-2023:6840

    Red Hat Security Advisory: OpenShift Container Platform 4.14.2 packages and security update

    Known exploited CVE-2023-29406CVE-2023-29409CVE-2023-39318CVE-2023-39319 Red Hat Updated 24 November 2026
  • RHSA-2023:7762

    Red Hat Security Advisory: skopeo security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Red Hat Updated 24 November 2026
  • RHSA-2023:7764

    Red Hat Security Advisory: buildah security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Red Hat Updated 24 November 2026
  • RHSA-2023:7765

    Red Hat Security Advisory: podman security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Red Hat Updated 24 November 2026
  • RHSA-2023:7766

    Red Hat Security Advisory: containernetworking-plugins security update

    CVE-2023-29409CVE-2023-39318CVE-2023-39319CVE-2023-39321 Red Hat Updated 24 November 2026
  • RHSA-2024:0121

    Red Hat Security Advisory: container-tools:4.0 security update

    CVE-2022-27664CVE-2022-2879CVE-2022-2880CVE-2022-41715 Red Hat Updated 23 November 2026
  • RHSA-2024:2160

    Red Hat Security Advisory: toolbox security update

    CVE-2023-39318CVE-2023-39319CVE-2023-39326 Red Hat Updated 23 November 2026
  • RHSA-2024:2988

    Red Hat Security Advisory: container-tools:rhel8 security update

    CVE-2018-25091CVE-2021-33198CVE-2021-34558CVE-2022-2879 Red Hat Updated 23 November 2026
  • RHSA-2024:3352

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.2 (etcd) security update

    CVE-2023-39318CVE-2023-39319CVE-2023-39321CVE-2023-39322 Red Hat Updated 24 November 2026
  • RHSA-2024:3467

    Red Hat Security Advisory: Red Hat OpenStack Platform 16.1 (etcd) security update

    CVE-2023-39318CVE-2023-39319CVE-2023-39321CVE-2023-39322 Red Hat Updated 23 November 2026
  • RHVEX-CVE-2023-39318

    golang: html/template: improper handling of HTML-like comments within script contexts

    Moderate CVE-2023-39318 Red Hat Updated 7 November 2026
  • RLSA-2024:0121

    Moderate: container-tools:4.0 security update

    CVE-2022-27664CVE-2022-2879CVE-2022-2880CVE-2022-41715 Rocky Linux Updated 7 May 2025
  • RLSA-2024:2988

    Moderate: container-tools:rhel8 security update

    CVE-2018-25091CVE-2021-33198CVE-2021-34558CVE-2022-2879 Rocky Linux Updated 7 May 2025
  • SUSE-SU-2023:3700-1

    Security update for go1.20

    CVE-2023-39318CVE-2023-39319 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:3701-1

    Security update for go1.21

    CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:3840-1

    Security update for go1.20-openssl

    CVE-2023-29409CVE-2023-39318CVE-2023-39319 SUSEopenSUSE Updated 2 May 2025
  • SUSE-SU-2023:4469-1

    Security update for go1.21-openssl

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 SUSEopenSUSE Updated 4 February 2026
  • SUSEVEX-CVE-2023-39318

    The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script>…

    Moderate CVE-2023-39318 SUSE Updated 30 October 2026
  • UBUNTU-CVE-2023-39318

    The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the template parser to improperly interpret the contents of <script>…

    CVE-2023-39318 Ubuntu Updated 20 May 2026
  • USN-6574-1

    Go vulnerabilities

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39323CVE-2023-39325 Ubuntu Updated 27 April 2026
  • USN-7061-1

    golang-1.17 vulnerabilities

    CVE-2023-24531CVE-2023-24538CVE-2023-29402CVE-2023-29403 Ubuntu Updated 27 April 2026
  • USN-7109-1

    golang-1.18 vulnerabilities

    CVE-2022-41723CVE-2022-41724CVE-2022-41725CVE-2023-24531 Ubuntu Updated 25 June 2026
  • openSUSE-SU-2023:0360-1

    Security update for go1.21

    Known exploited CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 SUSE Updated 4 February 2026
  • openSUSE-SU-2024:13216-1

    go1.20-1.20.8-1.1 on GA media

    CVE-2023-39318CVE-2023-39319 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:13217-1

    go1.21-1.21.1-1.1 on GA media

    CVE-2023-39318CVE-2023-39319CVE-2023-39320CVE-2023-39321 openSUSE Updated 4 February 2026

References