CVE-2026-25681: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in golang.org/x/net golang.org/x/net/html
CVE-2026-25681 is a medium severity cross-site scripting (XSS) vulnerability in the golang.org/x/net/html package. It arises when parsing arbitrary HTML and rendering it with the Render function, which can produce an unexpected HTML tree. This improper neutralization of input during web page generation may allow XSS attacks in applications relying on this package for HTML sanitization. No official patch or remediation guidance is currently available, and no known exploits exist in the wild.
AI Analysis
Technical Summary
This vulnerability (CVE-2026-25681) affects the golang.org/x/net/html package, specifically its Render function. When parsing arbitrary HTML, the function may generate an unexpected HTML tree due to improper neutralization of input, leading to a cross-site scripting (CWE-79) vulnerability. The issue can impact applications that use this package for HTML sanitization, potentially allowing injection of malicious scripts. The CVSS score is 6.1 (medium severity), indicating a network attack vector with low complexity and requiring user interaction, with partial confidentiality and integrity impact but no availability impact. There is currently no official patch or remediation guidance, and no known exploits have been reported in the wild.
Potential Impact
The vulnerability can lead to cross-site scripting attacks in applications that rely on golang.org/x/net/html for sanitizing or rendering HTML content. This may allow attackers to inject malicious scripts that compromise confidentiality and integrity of data processed or displayed by the affected applications. However, no known exploits are currently active in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when using the Render function on untrusted HTML input and consider additional application-level input validation or sanitization measures.
CVE-2026-25681: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in golang.org/x/net golang.org/x/net/html
Description
CVE-2026-25681 is a medium severity cross-site scripting (XSS) vulnerability in the golang.org/x/net/html package. It arises when parsing arbitrary HTML and rendering it with the Render function, which can produce an unexpected HTML tree. This improper neutralization of input during web page generation may allow XSS attacks in applications relying on this package for HTML sanitization. No official patch or remediation guidance is currently available, and no known exploits exist in the wild.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CVE-2026-25681) affects the golang.org/x/net/html package, specifically its Render function. When parsing arbitrary HTML, the function may generate an unexpected HTML tree due to improper neutralization of input, leading to a cross-site scripting (CWE-79) vulnerability. The issue can impact applications that use this package for HTML sanitization, potentially allowing injection of malicious scripts. The CVSS score is 6.1 (medium severity), indicating a network attack vector with low complexity and requiring user interaction, with partial confidentiality and integrity impact but no availability impact. There is currently no official patch or remediation guidance, and no known exploits have been reported in the wild.
Potential Impact
The vulnerability can lead to cross-site scripting attacks in applications that rely on golang.org/x/net/html for sanitizing or rendering HTML content. This may allow attackers to inject malicious scripts that compromise confidentiality and integrity of data processed or displayed by the affected applications. However, no known exploits are currently active in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should exercise caution when using the Render function on untrusted HTML input and consider additional application-level input validation or sanitization measures.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-02-05T01:35:43.738Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a1079f0e1370fbb48159da4
Added to database: 05/22/2026, 15:44:48 UTC
Last enriched: 06/29/2026, 22:48:11 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 93
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.