CVE-2026-5090: Libtemplate perl · Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to
Affects libtemplate-perlSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium · fixed in 2.27-1ubuntu0.22.04.1 : update libtemplate-perl when convenient.
Data as of 24 Nov 2026, 20:12 UTC
- Patch
- Available – fixed in 2.27-1ubuntu0.22.04.1, 2.27-1ubuntu0.24.04.1, 2.27-1ubuntu0.25.10.1 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 19 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=questingOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlibtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu 20.04 LTSlibtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSlibtemplate-perlpkg:deb/ubuntu/libtemplate-perl?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-5090 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-5090 (opens in a new tab)
- lists.security.metacpan.org/cve-announce/msg/40218729/ (opens in a new tab)
- github.com/abw/Template2/issues/327 (opens in a new tab)
- github.com/cpan-authors/Template2/pull/337 (opens in a new tab)
- github.com/abw/Template2/pull/337/changes/11c78a7a771d4af505efeb754a0b8775689c2eae (opens in a new tab)
- openwall.com/lists/oss-security/2026/05/19/40 (opens in a new tab)
- ubuntu.com/security/notices/USN-8377-1 (opens in a new tab)