CVE Explore

Go Standard Library Html/template

14 CVEs affecting Go Standard Library Html/template. Latest disclosed: 2026-10-08. Critical: 2, High: 2.

Top CVEs affecting Go Standard Library Html/template
CVESeverityScorePublishedSummary
CVE-2023-24540Critical9.82023-05-11Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f…
CVE-2023-24538Critical9.82023-04-06Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS tem…
CVE-2023-29400High7.32023-05-11Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed…
CVE-2023-24539High7.32023-05-11Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character…
CVE-2026-97030Medium6.12026-10-08A trusted template author may have previously written a valid template wherein the use of the 'yield' keyword would not be correctly escaped. We now ensure tha…
CVE-2026-94448Medium6.12026-10-08When a JavaScript template literal contains consecutive expressions, the context tracking state was not properly reset upon entering a new expression. We now e…
CVE-2026-56858Medium6.12026-08-13Previously, pathological inputs could close an unescaped '/' early, allowing for attack-controlled data to inject arbitrary content, potentially leading to XSS.
CVE-2026-39826Medium6.12026-05-07If 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…
CVE-2026-39823Medium6.12026-05-07CVE-2026-27142 fixed a vulnerability in which URLs were not correctly escaped inside of a <meta> tag's <content> attribute. If the URL content were to insert A…
CVE-2026-32289Medium6.12026-04-08Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used…
CVE-2026-27142Medium6.12026-03-06Actions which insert URLs into the content attribute of HTML meta tags are not escaped. This can allow XSS if the meta tag also has an http-equiv attribute wit…
CVE-2023-39319Medium6.12023-09-08The html/template package does not apply the proper rules for handling occurrences of "<script", "<!--", and "</script" within JS literals in <script> contexts…
CVE-2023-39318Medium6.12023-09-08The html/template package does not properly handle HTML-like "" comment tokens, nor hashbang "#!" comment tokens, in <script> contexts. This may cause the temp…
CVE-2024-24785Medium5.42024-03-05If errors returned from MarshalJSON methods contain user controlled data, they may be used to break the contextual auto-escaping behavior of the html/template…