Go standard library html/template Schwachstellen (CVE)

Für Go standard library html/template veröffentlichte CVE-Einträge, neueste zuerst. Folgen Sie, um bei neuen Einträgen eine E-Mail zu erhalten.

14 Ergebnisse
6.1Mittel
CVE-2026-39826

Escaper bypass leads to XSS in html/template

Go standard library html/template

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.

6.1Mittel
CVE-2026-39823

Bypass of meta content URL escaping causes XSS in html/template

Go standard library html/template

CVE-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 ASCII whitespaces around the '=' rune inside of the <content> attribute, the escaper would fail to si…

6.1Mittel
CVE-2026-32289

JsBraceDepth Context Tracking Bugs (XSS) in html/template

Go standard library html/template

Context was not properly tracked across template branches for JS template literals, leading to possibly incorrect escaping of content when branches were used. Additionally template actions within JS template literals did not properly track the brace depth, le…

7.3Hoch
CVE-2023-24539

Improper sanitization of CSS values in html/template

Go standard library html/template

Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, i…

1.0%EPSS
9.8Kritisch
CVE-2023-24540

Improper handling of JavaScript whitespace in html/template

Go standard library html/template

Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set "\t\n\f\r\u0020\u2028\u2029" in JavaScript contexts that also contain actions may not be properly sanitized…

1.6%EPSS
7.3Hoch
CVE-2023-29400

Improper handling of empty HTML attributes in html/template

Go standard library html/template

Templates containing actions in unquoted HTML attributes (e.g. "attr={{.}}") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.

1.0%EPSS
9.8Kritisch
CVE-2023-24538

Backticks not treated as string delimiters in html/template

Go standard library html/template

Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected. Backticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, th…

2.3%EPSS