CVE-2023-39319 - CVE House
Back to Database
Status published Unknown CVE-2023-39319

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

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-39319

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • Takeshi Kaneko (GMO Cybersecurity by Ierae, Inc.)

Affected Vendor

Go standard library

View all reports →

Affected Software

html/template
Vulnerable Versions:
0, 1.21.0-0

Timeline

Official Publish: September 8th, 2023
Last Modified: February 13th, 2025
Added to House: July 22nd, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.