Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-94448

Опубликовано: 08 окт. 2026
Источник: redhat
CVSS3: 6.1
EPSS Низкий

Описание

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped.

A flaw was found in the html/template package in Go. This vulnerability allows a remote attacker to conduct cross-site scripting (XSS, an attack that executes malicious scripts in a user's browser) through improper output escaping. When a JavaScript template literal contains consecutive expressions, the parser fails to properly reset its context tracking state. Consequently, subsequent regular expression literals are not accurately recognized and escaped, potentially allowing untrusted content to bypass template sanitization.

Отчет

A MODERATE severity cross-site scripting (XSS) vulnerability was found in Go's html/template package, which is shipped and used across multiple Red Hat products, including Red Hat Enterprise Linux (golang and go-toolset), Red Hat Enterprise Linux AI, Red Hat In-Vehicle OS, and other components that build against the Go toolchain. When a JavaScript template literal contains consecutive expressions, the parser fails to properly reset its context tracking state upon entering a new expression. As a result, subsequent regular expression literals are not accurately recognized and escaped, allowing a remote attacker to supply untrusted content through a template that bypasses html/template sanitization and executes malicious script in a victim's browser. Successful exploitation requires a victim user to visit a rendered page of a Go web application that interpolates attacker-controlled input into JavaScript template literals. Red Hat has rated this flaw MODERATE with a CVSS 3.1 score of 6.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), consistent with the upstream assessment; the impact is limited to low confidentiality and integrity loss within the client browser context, with no availability impact. Because the CVSS score is below 7.0, the fix is deferred for the affected Red Hat product streams and update trackers are not being filed for this MODERATE severity flaw at this time. The residual risk is limited to Go-based web applications that render attacker-controlled content through html/template into JavaScript contexts; the flaw does not affect applications that do not use html/template with JavaScript template literals.

Меры по смягчению последствий

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
OpenShift Developer Tools and ServiceshelmOut of support scope
OpenShift Pipelinesopenshift-pipelines-clientFix deferred
OpenShift Serverlesskn-workflow-pluginFix deferred
OpenShift Serverlessopenshift-serverless-clientsFix deferred
OpenShift Service Mesh 3istio-proxyFix deferred
OpenShift Service Mesh 3openshift-golang-builder-containerAffected
Red Hat Ansible Automation Platform 2automation-gateway-proxyFix deferred
Red Hat Ansible Automation Platform 2automation-gateway-proxy-openssl30Out of support scope
Red Hat Ansible Automation Platform 2automation-gateway-proxy-openssl32Out of support scope
Red Hat Ansible Automation Platform 2receptorFix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-79
https://bugzilla.redhat.com/show_bug.cgi?id=2548346html/template: golang: golang: cross-site scripting via consecutive expressions in JavaScript template literals

EPSS

Процентиль: 21%
0.00289
Низкий

6.1 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.1
ubuntu
18 дней назад

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped.

CVSS3: 6.1
nvd
18 дней назад

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped.

CVSS3: 5.5
msrc
16 дней назад

Reset context tracking on consecutive template expressions in html/template

CVSS3: 6.1
debian
18 дней назад

When a JavaScript template literal contains consecutive expressions, t ...

CVSS3: 6.1
github
18 дней назад

When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now ensure that template-literal expression entries correctly reset context variables so all subsequent regular expression literals are accurately recognized and escaped.

EPSS

Процентиль: 21%
0.00289
Низкий

6.1 Medium

CVSS3