Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2023-39319

golang: html/template: improper handling of special tags within script contexts

Overview

Published
8 Sep 2023
Modified
17 Jun 2026
Medium CVE
2 Registry packages
213 OS packages
17 Linux distributions
Yes Fix available

Description

The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts. This may cause the template parser to improperly consider script contexts to be terminated early, causing actions to be improperly escaped. This could be leveraged to perform an XSS attack.

Source: OX vulnerability database

Severity

6.1 · MEDIUM

CVSS 3.1 base score, scored by NVD.

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness: CWE-79

Affected packages · 2

Packages affected by CVE-2023-39319
EcosystemPackageVulnerableFixed in
Bitnami golang <1.20.8>=1.21.0, <1.21.1 1.20.81.21.1
Go stdlib <1.20.8>=1.21.0-0, <1.21.1 1.20.81.21.1

Open a package to see all its vulnerabilities.

Operating systems · 294 fixes

Azure Linux 1 release · 1 package

fixed 1
golang
Azure Linux fixes for CVE-2023-39319
ReleasePackageFixed in
3.0 golang 0:1.20.10-1.azl3

Oracle Linux 2 releases · 19 packages

fixed 23
udica fuse-overlayfs crun oci-seccomp-bpf-hook slirp4netns runc +13
Oracle Linux fixes for CVE-2023-39319
ReleasePackageFixed in
8 udica 0.2.6-20.module+el8.9.0+90147+a4870853
8 fuse-overlayfs 1.13-1.module+el8.10.0+90298+77a9814d
8 crun 1.14.3-2.module+el8.10.0+90298+77a9814d
8 oci-seccomp-bpf-hook 1.2.10-1.module+el8.10.0+90298+77a9814d
8 slirp4netns 1.2.3-1.module+el8.10.0+90298+77a9814d
8 runc 1:1.1.12-1.module+el8.10.0+90298+77a9814d

17 more rows

Photon OS 2 releases · 1 package

fixed 2
go
Photon OS fixes for CVE-2023-39319
ReleasePackageFixed in
4.0 go 1.20.8-1.ph4
5.0 go 1.20.8-1.ph5

Red Hat 7 releases · 53 packages

wont fix 4 affected 1 fixed 104
go-toolset-7-golang yggdrasil-worker-forwarder buildah osbuild-composer crun-wasm golang-github-prometheus-promu +47
Red Hat fixes for CVE-2023-39319
ReleasePackageFixed inAdvisory
go-toolset-7-golang +6 wont fix —
7 yggdrasil-worker-forwarder affected —
7 buildah +6 wont fix —
8 osbuild-composer +3 wont fix —
8 crun-wasm 0:0.0-3.rhaos4.14.el8 RHSA-2023:5009
8 golang-github-prometheus-promu +1 0:0.15.0-15.1.gitd5383c5.el8 RHSA-2023:5009

103 more rows

SUSE Linux Enterprise 2 releases · 4 packages

fixed 8
go1-20 go1-20-openssl go1-21 go1-21-openssl
SUSE Linux Enterprise fixes for CVE-2023-39319
ReleasePackageFixed inAdvisory
15.4 go1-20 +2 1.20.8-150000.1.23.1 SUSE-SU-2023:3700-1
15.4 go1-20-openssl +2 1.20.8.1-150000.1.11.1 SUSE-SU-2023:3840-1
15.4 go1-21 +2 1.21.1-150000.1.6.1 SUSE-SU-2023:3701-1
15.4 go1-21-openssl +2 1.21.4.1-150000.1.5.1 SUSE-SU-2023:4469-1
15.5 go1-20 +2 1.20.8-150000.1.23.1 SUSE-SU-2023:3700-1
15.5 go1-20-openssl +2 1.20.8.1-150000.1.11.1 SUSE-SU-2023:3840-1

2 more rows

alma 2 releases · 19 packages

fixed 24
toolbox udica slirp4netns oci-seccomp-bpf-hook crun fuse-overlayfs +13
alma fixes for CVE-2023-39319
ReleasePackageFixed in
8 (container-tools:4.0) toolbox +1 0.0.99.4-5.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) udica 0.2.6-4.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) slirp4netns 1.1.8-3.module_el8.9.0+3627+db8ec155
8 (container-tools:4.0) oci-seccomp-bpf-hook 1.2.5-2.module_el8.8.0+3468+16b86c82
8 (container-tools:4.0) crun 1.8.7-1.module_el8.9.0+3683+33eb0feb
8 (container-tools:4.0) fuse-overlayfs 1.9-2.module_el8.9.0+3627+db8ec155

18 more rows

alpine 4 releases · 1 package

fixed 4
go
alpine fixes for CVE-2023-39319
ReleasePackageFixed in
3.22 go 1.21.1-r0
3.23 go 1.21.1-r0
3.24 go 1.21.1-r0
edge go 1.21.1-r0

amazon linux 1 release · 1 package

fixed 1
golang
amazon linux fixes for CVE-2023-39319
ReleasePackageFixed in
2023 golang +6 1.20.8-1.amzn2023.0.1

chainguard 1 release · 3 packages

fixed 3
kubeflow-katib kind metrics-server
chainguard fixes for CVE-2023-39319
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
kind 0.21.0-r0
metrics-server 0.6.4-r1

debian 3 releases · 3 packages

affected 3
golang-1-11 golang-1-15 golang-1-19
debian fixes for CVE-2023-39319
ReleasePackageFixed in
10 golang-1-11 affected
11 golang-1-15 affected
12 golang-1-19 affected

echo 1 release · 1 package

affected 1
golang-1-19
echo fixes for CVE-2023-39319
ReleasePackageFixed in
golang-1-19 affected

minimos 1 release · 1 package

fixed 1
trigger-dev
minimos fixes for CVE-2023-39319
ReleasePackageFixed in
trigger-dev 4.5.11-r1

openSUSE 1 release · 2 packages

fixed 2
go1-20 go1-21
openSUSE fixes for CVE-2023-39319
ReleasePackageFixed inAdvisory
Tumbleweed go1-20 +3 1.20.8-1.1 openSUSE-SU-2024:13216-1
Tumbleweed go1-21 +3 1.21.1-1.1 openSUSE-SU-2024:13217-1

rocky 2 releases · 19 packages

fixed 100
udica slirp4netns oci-seccomp-bpf-hook fuse-overlayfs runc buildah +13
rocky fixes for CVE-2023-39319
ReleasePackageFixed in
8 (container-tools:4.0) udica 0.2.6-4.module+el8.9.0+1445+07728297
8 (container-tools:4.0) slirp4netns 1.1.8-3.module+el8.9.0+1445+07728297
8 (container-tools:4.0) oci-seccomp-bpf-hook 1.2.5-2.module+el8.9.0+1445+07728297
8 (container-tools:4.0) fuse-overlayfs 1.9-2.module+el8.9.0+1445+07728297
8 (container-tools:4.0) runc 1:1.1.5-2.module+el8.9.0+1445+07728297
8 (container-tools:4.0) buildah +1 1:1.24.6-7.module+el8.9.0+1445+07728297

94 more rows

root.io debian 1 release · 1 package

affected 1
rootio-golang-1-19
root.io debian fixes for CVE-2023-39319
ReleasePackageFixed in
12 rootio-golang-1-19 affected

ubuntu 4 releases · 3 packages

fixed 8
golang-1-18 golang-1-20 golang-1-17
ubuntu fixes for CVE-2023-39319
ReleasePackageFixed in
18.04-ESM golang-1-18 1.18.1-1ubuntu1~18.04.4+esm1
20.04 golang-1-18 1.18.1-1ubuntu1~20.04.3
20.04 golang-1-20 1.20.3-1ubuntu0.1~20.04.1
20.04-ESM golang-1-18 1.18.1-1ubuntu1~20.04.3
20.04-ESM golang-1-20 1.20.3-1ubuntu0.1~20.04.1
22.04 golang-1-17 1.17.13-3ubuntu1.2

2 more rows

wolfi 1 release · 3 packages

fixed 3
kubeflow-katib kind metrics-server
wolfi fixes for CVE-2023-39319
ReleasePackageFixed in
kubeflow-katib 0.19.0-r40
kind 0.21.0-r0
metrics-server 0.6.4-r1

References

Show all 58 references

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.