Vulnerability · Published May 19, 2026 · Assigned by CPANSec

CVE-2026-5090Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected

Medium 6.1

In plain English

A medium-severity cross-site scripting in Template-Toolkit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.3%top 78.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libtemplate-perlno fix listedDEBIAN-CVE-2026-5090
Debian:13libtemplate-perlno fix listedDEBIAN-CVE-2026-5090
Debian:14libtemplate-perl3.102-3DEBIAN-CVE-2026-5090
Ubuntu:22.04:LTSlibtemplate-perl2.27-1ubuntu0.22.04.1USN-8377-1
Ubuntu:22.04:LTSlibtemplate-perl2.27-1ubuntu0.22.04.1UBUNTU-CVE-2026-5090
Ubuntu:24.04:LTSlibtemplate-perl2.27-1ubuntu0.24.04.1USN-8377-1
Ubuntu:24.04:LTSlibtemplate-perl2.27-1ubuntu0.24.04.1UBUNTU-CVE-2026-5090
Ubuntu:25.10libtemplate-perl2.27-1ubuntu0.25.10.1USN-8377-1
Ubuntu:25.10libtemplate-perl2.27-1ubuntu0.25.10.1UBUNTU-CVE-2026-5090
Ubuntu:26.04:LTSlibtemplate-perl3.102-1ubuntu0.1UBUNTU-CVE-2026-5090
Ubuntu:26.04:LTSlibtemplate-perl3.102-1ubuntu0.1USN-8377-1

Affected products (as reported)

VendorProductVersions
Template-Toolkit 0 – before 3.103

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References