CVE-2023-39318
mediumpriority · track · 24EPSS 0.009 · 60 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (37)
Products and version ranges known to be affected.
advisories (4)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2023-2280Golang Go: Mehrere SchwachstellenDeutsch2023-09-06csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in Golang Go ausnutzen, um einen Cross-Site Scripting Angriff durchzuführen, Code auszuführen oder einen Denial of Service zu verursachen.
- WID-SEC-W-2023-3146IBM MQ Operator and Queue manager: Mehrere SchwachstellenDeutsch2023-12-13csaf · cert_bundDE
Ein Angreifer kann mehrere Schwachstellen in IBM MQ Operator and Queue manager ausnutzen, um einen Denial of Service Angriff durchzuführen, Informationen offenzulegen oder Sicherheitsmaßnahmen zu umgehen.
- BIT-golang-2023-39318Improper handling of HTML-like comments in script contexts in html/template2024-03-06vendor · osvUS
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.
- GO-2023-2041Improper handling of HTML-like comments in script contexts in html/template2023-09-07vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202309-671cnnvd
- EUVD-2023-43050enisa_euvd
- BDU:2024-07762fstec_bdu
- GHSA-vq7j-gx56-rxjhenisa_euvd
- BIT-golang-2023-39318osv
- GO-2023-2041osv
sources
Which sources assert this record, and when.
references (24)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-39318/cnnvd
- https://github.com/golang/go/issues/62196Patchcnnvd
- https://go.dev/cl/526156cnnvd
- https://go.dev/issue/62196cnnvd
- https://groups.google.com/g/golang-dev/c/2C5vbR-UNkI/m/L1hdrPhfBAAJcnnvd
- https://packetstormsecurity.com/files/176524/Ubuntu-Security-Notice-USN-6574-1.htmlcnnvd
- https://pkg.go.dev/vuln/GO-2023-2041cnnvd
- https://security.netapp.com/advisory/ntap-20231020-0009/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan