CVE Catalog

CVE-2026-5090

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.28%

21th percentile - higher than 21% of all known CVEs

Summary

Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected. The html_filter function did not escape single quotes, so HTML attributes inside single quotes could have code injected, e.g. the variable "var" in <a id='ref' title='[% var | html %]'> would not be properly escaped. Arbitrary HTML and JavaScript injection is difficult because angle brackets, ampersands and double-quotes are still escaped.

Risk Assessment

An attacker can inject limited HTML and JavaScript, potentially leading to script execution in the user's browser and possible session takeover.

Recommendation

Update Template::Plugin::HTML to version 3.103 or later, which properly escapes single quotes.

Related vulnerabilities

Original NVD description (English source)

Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected. The html_filter function did not escape single quotes. HTML attributes inside of single quotes could be have code injected. For example, the variable "var" in <a id='ref' title='[% var | html %]'> would not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example, var = " ' onclick='while (true) { alert(1) }'" Note that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS