CVE-2026-97030: 
Go 脆弱性分析と緩和策

概要

CVE-2026-97030 is a Cross-Site Scripting (XSS) vulnerability in the Go standard library's html/template package, caused by improper escaping of the yield keyword in templates. A trusted template author could craft a valid template where yield is not correctly escaped, potentially enabling injection of unintended content into rendered HTML pages. The vulnerability affects Go versions prior to 1.26.9 and versions 1.27.0-0 through 1.27.2. It was published on October 8, 2026, with a CVSS v3.1 base score of 6.1 (Medium) (GitHub Advisory).

技術的詳細

The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). The html/template package in Go failed to correctly escape the yield keyword when it appeared in template code, meaning a trusted template author could write a syntactically valid template that bypasses the package's output escaping logic. Exploitation requires user interaction (e.g., a victim visiting a page rendered from a maliciously crafted template) and is network-accessible with low attack complexity. The fix ensures that valid yield keyword uses are properly escaped while non-keyword uses of the string are left unescaped (GitHub Advisory, Go Vuln DB).

影響

Successful exploitation could allow an attacker with template authoring privileges to inject arbitrary HTML or JavaScript into pages rendered for other users, resulting in low confidentiality and integrity impacts with no availability impact. The vulnerability's changed scope means the impact extends beyond the vulnerable component itself to the browsers of end users viewing the affected pages. Potential consequences include session hijacking, credential theft, or delivery of malicious payloads to victims (GitHub Advisory).

利用可能性

There is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation as of the time of disclosure (GitHub Advisory). The EPSS score is approximately 0.181%, placing it in the 7th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires the attacker to have trusted template authoring access, which limits the attack surface considerably.

エクスプロイテーションのステップ

  1. Gain template authoring access: Obtain trusted access to write or modify Go html/template templates in the target application (e.g., as a developer, CMS contributor, or through a separate vulnerability allowing template injection).
  2. Craft a malicious template: Write a valid Go template that includes the yield keyword in a context where, in unpatched versions, it would not be correctly escaped — for example, embedding JavaScript or HTML within a template block that uses yield.
  3. Deploy the template: Ensure the malicious template is rendered by the application for end users, such as by modifying a shared template file or a database-backed template.
  4. Trigger victim interaction: Lure a victim user to visit the page rendered from the malicious template (user interaction is required per the CVSS vector).
  5. Achieve XSS: The unescaped yield content is rendered in the victim's browser, executing injected JavaScript — enabling session theft, credential harvesting, or further attacks (GitHub Advisory, Go Vuln DB).

緩和策と回避策

Upgrade Go to version 1.26.9 or later (for the 1.26.x branch), or to 1.27.2 or later (for the 1.27.x branch). No configuration-based workaround is available; patching is the only remediation. Organizations should also review existing templates that use the yield keyword to confirm they do not rely on the previous (incorrect) escaping behavior, as the fix changes how yield is handled (GitHub Advisory, Go Vuln DB). SUSE has also released security updates addressing this issue (SUSE Advisory).

コミュニティの反応

The vulnerability was announced via the golang-announce mailing list and tracked in the Go issue tracker. SUSE released security advisories (SUSE-SU-2026:4625-1 and SUSE-SU-2026:4629-1) addressing the issue in their Go packages. The Hugo static site generator also released v0.168.0 incorporating the fix. Community reaction has been low-key given the moderate severity and limited exploitation prerequisites (golang-announce, SUSE Advisory, Hugo Release).

追加リソース

Linuxディストリビューションの修正状況

主要なLinuxディストリビューションとそのリリース間での可用性を修正しましょう。

Debian

影響

bookworm

golang-1.19

影響

sid

golang-1.27: 1.27.2-1

修正済

trixie

golang-1.24

影響

Ubuntu

不明

bionic (esm-apps)

golang-1.8

不明

bionic (esm-infra)

golang-1.10

不明

devel

golang-1.26

不明

focal (esm-apps)

golang-1.16

不明

focal (esm-infra)

golang-1.13

不明

jammy

golang-1.13

不明

jammy (esm-apps)

golang-1.13

不明

noble

golang-1.21

不明

Alpine

修正済

edge

go: 1.27.2-r0

修正済

ソース: この報告書はAIを用いて作成されました

関連 Go 脆弱性:

CVE ID

重大度

スコア

テクノロジー

コンポーネント名

CISA KEVのエクスプロイト

修正あり

出版日

CVE-2026-97032HIGH7.5
  • Go logoGo
  • gitlab-kas-19.2
いいえはいOct 08, 2026
CVE-2026-97031HIGH7.5
  • Go logoGo
  • terraform-fips-1.13
いいえはいOct 08, 2026
CVE-2026-111943MEDIUM6.8
  • Go logoGo
  • container-tools:rhel8::criu
いいえはいOct 21, 2026
CVE-2026-97030MEDIUM6.1
  • Go logoGo
  • wait-for-port
いいえはいOct 08, 2026
CVE-2026-94448MEDIUM6.1
  • Go logoGo
  • buildah-tests
いいえはいOct 08, 2026

無料脆弱性評価

クラウドセキュリティの姿勢をベンチマークしましょう

9つのセキュリティ領域にわたるクラウドセキュリティの実践を評価し、リスクレベルをベンチマークし、防御のギャップを特定しましょう。

評価のリクエスト

Wizのその他のリソース

パーソナライズされたデモを見る

実際に Wiz を見てみませんか?​

"私が今まで見た中で最高のユーザーエクスペリエンスは、クラウドワークロードを完全に可視化します。"
デビッド・エストリックCISO (最高情報責任者)
"Wiz を使えば、クラウド環境で何が起こっているかを 1 つの画面で確認することができます"
アダム・フレッチャーチーフ・セキュリティ・オフィサー
"Wizが何かを重要視した場合、それは実際に重要であることを私たちは知っています。"
グレッグ・ポニャトフスキ脅威および脆弱性管理責任者