{"id":"CVE-2026-39826","published":"2026-05-07T19:41:19Z","modified":"2026-05-08T14:05:05Z","title":"Escaper bypass leads to XSS in html/template","vendor":"Go standard library","product":"html/template","tier":"tail","description":{"text":"If a trusted template author were to write a <script> tag containing an empty 'type' attribute or a 'type' attribute with an ASCII whitespace, the execution of the template would incorrectly escape any data passed into the <script> block.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00371,"percentile":0.31849,"provenance":"source"},"cwes":[],"references":[{"url":"https://go.dev/issue/78981","tags":[]},{"url":"https://go.dev/cl/771180","tags":[]},{"url":"https://groups.google.com/g/golang-announce/c/qcCIEXso47M","tags":[]},{"url":"https://pkg.go.dev/vuln/GO-2026-4980","tags":[]}],"priority":{"score":10.6,"factors":[{"name":"EPSS percentile","points":6.37},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"go-standard-library","affectedVersions":[{"vendor":"Go standard library","product":"html/template","versions":["< 1.25.10",">= 1.26.0-0, < 1.26.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-08T14:04:40.842823Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":["<1.25.10",">=1.26.0-0, <1.26.3"],"patched":["1.25.10","1.26.3"],"from":["GO-2026-4980"],"provenance":"source"}],"summary":{"text":"The html/template package in the Go standard library contains a flaw in its escaper: when a trusted template author writes a <script> tag with an empty or whitespace-containing 'type' attribute, the escaper incorrectly handles data inserted into that script block. An attacker who can supply data passed into such a template can exploit this over the network without authentication, but exploitation requires a user to interact with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:04Z"},"euvd":{"id":"EUVD-2026-28426","exploited":false,"provenance":"source"}}