What’s Vulnerable › Vulnerabilities

CVE-2026-56858: Fix Javascript regexp context tracking in html/template

Description

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

Affected products

How to fix

Upgrade to a fixed version: Go Stdlib 1.25.13, 1.26.6, 1.27.0-rc.3; Go standard library html/template 1.25.13, 1.26.6, 1.27.0-rc.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-56858 or the next vulnerability affects your stack