Security mailing lists by PureSourceCode

CVE-2023-39319

MEDIUM 6.1CVSS 3.1

Improper handling of special tags within script contexts in html/template

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.

Published
8 Sep 2023
Last modified
17 Jun 2026
Assigned by
security@golang.org
NVD status
Modified
Weakness
CWE-79
Also known as
BIT-golang-2023-39319GO-2023-2043
Sources
NVDJSONOSV GO-2023-2043JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
< 1.20.8 1.20.8
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
>= 1.21.0, < 1.21.1 1.21.1
OSV Go stdlib < 1.20.8; >= 1.21.0-0, < 1.21.1 1.20.8, 1.21.1

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 8 Sep 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Sep 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.