CVE-2026-97045: 
Gitea vulnerability analysis and mitigation

Overview

CVE-2026-97045 is an HTML parser namespace confusion vulnerability in the golang.org/x/net/html package that enables HTML injection or content manipulation through maliciously crafted input. The flaw exists in the childTextNodesAreLiteral function, where the tree-walking algorithm incorrectly stops at the nearest foreign ancestor upon finding an HTML integration point, without verifying the full ancestor chain. All versions of golang.org/x/net/html prior to 0.62.0 are affected. It was published on October 27, 2026, with a patch released the same day. The CVSS category is estimated as Medium, with an EPSS score of 0.0 (GitHub Advisory, EUVD).

Technical details

The root cause is improper namespace resolution in the HTML parser's childTextNodesAreLiteral function (CWE-79, Cross-Site Scripting). When the parser walks up the DOM tree and encounters an HTML integration point, it previously halted without continuing to verify the full ancestor chain. An HTML integration point may itself be a descendant of an element foster-parented into a foreign namespace — such as <mglyph> or <malignmark> fostered under <mtext> — causing the parser to resolve the subtree in a different foreign namespace upon re-parsing the rendered output. The fix requires walking the complete ancestor chain and verifying that every transition from a non-empty namespace occurs at a valid HTML integration point before emitting literal text (GitHub Advisory, Go Vuln DB).

Impact

An unauthenticated attacker can craft malicious HTML that, when parsed and subsequently re-parsed, produces different output in a different namespace, enabling HTML injection or content manipulation attacks through namespace confusion. This primarily affects the integrity of rendered content in applications that use golang.org/x/net/html for parsing and re-serializing HTML, potentially allowing injection of arbitrary HTML elements or attributes. Confidentiality and availability impacts are considered low; the primary risk is content tampering and potential cross-site scripting in downstream applications (GitHub Advisory, Go Vuln DB).

Exploitability

There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the disclosure date. The EPSS score is 0.0, indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (GitHub Advisory, OSV).

Mitigation and workarounds

The primary remediation is to upgrade golang.org/x/net to version 0.62.0 or later, which corrects the ancestor chain traversal logic in childTextNodesAreLiteral. If immediate patching is not feasible, operators should validate and sanitize all HTML input to prevent malicious namespace transitions and foster-parenting attacks, and implement strict output validation to detect unexpected namespace changes during parsing cycles. The fix is tracked under Go issue #82622 and code review CL 855121 (GitHub Advisory, Go Vuln DB).

Community reactions

The vulnerability was announced via the golang-announce mailing list and received routine coverage from vulnerability tracking services including OSV, VulnDB, and seclists.org/oss-sec. No notable researcher commentary or significant community debate has been observed beyond standard disclosure channels (golang-announce, oss-sec).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Affected

bookworm

golang-golang-x-net

Affected

sid

golang-golang-x-net

Affected

trixie

golang-golang-x-net

Affected

Ubuntu

Unknown

bionic (esm-apps)

google-guest-agent

Unknown

bionic (esm-infra)

lxd

Unknown

devel

golang-golang-x-net

Unknown

focal (esm-apps)

google-osconfig-agent

Unknown

focal (esm-infra)

google-guest-agent

Unknown

jammy

golang-golang-x-net

Unknown

jammy (esm-apps)

golang-golang-x-net

Unknown

noble

golang-golang-x-net

Unknown

Source: This report was generated using AI

Related Gitea vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-97859MEDIUM6.5
  • Gitea logoGitea
  • gitea
NoNoOct 18, 2026
CVE-2026-114437MEDIUM6.3
  • Datadog Agent logoDatadog Agent
  • llm-d-router-fips
NoYesOct 21, 2026
CVE-2026-97204LOW3.1
  • Gitea logoGitea
  • gitea
NoNoOct 18, 2026
CVE-2026-97045NONEN/A
  • Gitea logoGitea
  • hugo-fips
NoYesOct 27, 2026
CVE-2026-78661NONEN/A
  • Gitea logoGitea
  • golang-1.21
NoYesOct 27, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management