Skip to main content
← All vulnerabilities
CVE-2026-42502GO-2026-5027

Invoking incorrect handling of HTML elements in foreign content in golang.org/x/net/html

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.55.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

Parsing arbitrary HTML which is then rendered using Render can result in an unexpected HTML tree. This can be leveraged to execute XSS attacks in applications that attempt to sanitize input HTML before rendering.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • golang.org/x/net/html

    fixed in 0.55.0

  • golang.org/x/netGo

    fixed in 0.55.0

References 4

go.dev

groups.google.com

pkg.go.dev