{"id":"CVE-2026-39826","revision":"db0c19ad4c6b4c768df038455d62102b","records":[{"revision":"db0c19ad4c6b4c768df038455d62102b","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-39826","aliases":[],"title":"Escaper bypass leads to XSS in html/template","description":"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.","state":0,"publishedAt":"2026-05-07T19:41:19.138+00:00","modifiedAt":"2026-05-08T14:05:05.849+00:00","affected":[{"ecosystem":"https://pkg.go.dev","name":"html/template","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Go standard library\",\n                    \"product\": \"html/template\",\n                    \"collectionURL\": \"https://pkg.go.dev\",\n                    \"packageName\": \"html/template\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"1.25.10\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"1.26.0-0\",\n                            \"lessThan\": \"1.26.3\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"isJSType\"\n                        },\n                        {\n                            \"name\": \"Template.Execute\"\n                        },\n                        {\n                            \"name\": \"Template.ExecuteTemplate\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[],"references":["https://go.dev/issue/78981","https://go.dev/cl/771180","https://groups.google.com/g/golang-announce/c/qcCIEXso47M","https://pkg.go.dev/vuln/GO-2026-4980"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-39826","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-39826","identifiers":["CVE-2026-39826"]},"retained":false,"historicalAffected":[]}],"coverage":[]}