CWE
79
Advisory Published
CVE Published
Updated

CVE-2023-39319: Improper handling of special tags within script contexts in html/template

First published: Wed Sep 06 2023(Updated: )

Golang Go is vulnerable to cross-site scripting, caused by improper validation of user-supplied input by the html/template package. A remote attacker could exploit this vulnerability using a specially crafted URL to execute script in a victim's Web browser within the security context of the hosting Web site, once the URL is clicked. An attacker could use this vulnerability to steal the victim's cookie-based authentication credentials.

Credit: security@golang.org security@golang.org security@golang.org

Affected SoftwareAffected VersionHow to fix
Golang Go<1.20.8
Golang Go>=1.21.0<1.21.1
redhat/golang<1.20.8
1.20.8
redhat/golang<1.21.1
1.21.1
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19<=1.19.8-2
IBM Concert Software<=1.0.0 - 1.0.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the vulnerability ID for this issue?

    The vulnerability ID for this issue is CVE-2023-39319.

  • What is the severity of CVE-2023-39319?

    The severity of CVE-2023-39319 is medium with a CVSS score of 6.1.

  • Which software is affected by CVE-2023-39319?

    Golang Go versions up to 1.20.8 and versions between 1.21.0 and 1.21.1 are affected by CVE-2023-39319.

  • How does CVE-2023-39319 affect the html/template package?

    CVE-2023-39319 affects the html/template package by improperly handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts, causing actions to be improperly escaped.

  • How can I fix CVE-2023-39319?

    To fix CVE-2023-39319, it is recommended to update Golang Go to versions 1.20.8 or 1.21.2 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203