CVE-2023-29453

CriticalCVSS 9.8/10Last modified Jun 17, 2026

Description

Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary Javascript code into the Go template. As ES6 template literals are rather complex, and themselves can do string interpolation, the decision was made to simply disallow Go template actions from being used inside of them (e.g., "var a = {{.}}"), since there is no obviously safe way to allow this behavior. This takes the same approach as github.com/google/safehtml. With fix, Template. Parse returns an Error when it encounters templates like this, with an ErrorCode of value 12. This ErrorCode is currently unexported but will be exported in the release of Go 1.21. Users who rely on the previous behavior can re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that backticks will now be escaped. This should be used with caution.

Metrics

CVSS 3.1 9.8/10CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Oct 12, 2023
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2023

CVE-2023-294545.4Stored or persistent cross-site scripting (XSS) is a type of XSS where the attacker first sends the payload to the web application, then theCVE-2023-294556.1Reflected XSS attacks, also known as non-persistent attacks, occur when a malicious script is reflected off a web application to the victim'CVE-2023-294565.4URL validation scheme receives input from a user and then parses it to identify its various components. The validation scheme can ensure thaCVE-2023-294576.1Reflected XSS attacks, occur when a malicious script is reflected off a web application to the victim's browser. The script can be activatedCVE-2023-294587.5Duktape is an 3rd-party embeddable JavaScript engine, with a focus on portability and compact footprint. When adding too many values in valsCVE-2023-294596.1The laola.redbull application through 5.1.9-R for Android exposes the exported activity at.redbullsalzburg.android.AppMode.Default.Splash.SpCVE-2023-29468.1Improper Access Control in GitHub repository openemr/openemr prior to 7.0.1.CVE-2023-294609.8An arbitrary code execution vulnerability contained in Rockwell Automation's Arena Simulation software was reported that could potentially aCVE-2023-294619.8An arbitrary code execution vulnerability contained in Rockwell Automation's Arena Simulation software was reported that could potentially aCVE-2023-294628.8An arbitrary code execution vulnerability contained in Rockwell Automation's Arena Simulation software was reported that could potentially aCVE-2023-294635.4The JMX Console within the Rockwell Automation Pavilion8 is exposed to application users and does not require authentication. If exploited, CVE-2023-294649.1FactoryTalk Linx, in the Rockwell Automation PanelView Plus, allows an unauthenticated threat actor to read data from memory via crafted mal
CVE-2023-29453: Critical severity, CVSS 9.8 | Vulnix