CVE-2026-5090 Affecting libtemplate-perl package, versions <2.27-1ubuntu0.22.04.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.29% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2204-LIBTEMPLATEPERL-16782321
  • published4 Jun 2026
  • disclosed19 May 2026

Introduced: 19 May 2026

CVE-2026-5090  (opens in a new tab)

How to fix?

Upgrade Ubuntu:22.04 libtemplate-perl to version 2.27-1ubuntu0.22.04.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libtemplate-perl package and not the libtemplate-perl package as distributed by Ubuntu. See How to fix? for Ubuntu:22.04 relevant fixed versions and status.

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

&lt;a id=&#39;ref&#39; title=&#39;[% var | html %]&#39;&gt;

would not be properly escaped. An attacker could insert some limited HTML and JavaScript, for example,

var = &#34; &#39; onclick=&#39;while (true) { alert(1) }&#39;&#34;

Note that arbitrary HTML and JavaScript would be difficult to inject, because angle brackets, ampersands and double-quotes would still be escaped.