Skip to main content
← All vulnerabilities
CVE-2026-56858GO-2026-6091BIT-GOLANG-2026-56858

Fix Javascript regexp context tracking in html/template

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

Summary

Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • html/template

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

  • stdlibGo

    fixed in 1.25.13; From 1.26.0-0 · fixed in 1.26.6; From 1.27.0-0 · fixed in 1.27.0-rc.3

References 4

go.dev

groups.google.com

pkg.go.dev