CVEfocus › CVE database › CVE-2026-5090

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

CVSS 6.1 MediumEPSS 0.3% (higher than 20% of CVEs)Published 2026-05-19Updated 2026-09-19Assigner: CPANSec

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.

CWE-79

What to do

Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
4Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libtemplate-perlFixed3.102-1ubuntu0.1UBUNTU-CVE-2026-5090
Ubuntu 25.10libtemplate-perlFixed2.27-1ubuntu0.25.10.1UBUNTU-CVE-2026-5090
Ubuntu 24.04libtemplate-perlFixed2.27-1ubuntu0.24.04.1UBUNTU-CVE-2026-5090
Ubuntu 22.04libtemplate-perlFixed2.27-1ubuntu0.22.04.1UBUNTU-CVE-2026-5090
Ubuntu 20.04libtemplate-perlFix pendingUBUNTU-CVE-2026-5090
Ubuntu 18.04libtemplate-perlFix pendingUBUNTU-CVE-2026-5090
Ubuntu 16.04libtemplate-perlFix pendingUBUNTU-CVE-2026-5090
Debian 14libtemplate-perlFixed3.102-3DEBIAN-CVE-2026-5090
Debian 13libtemplate-perlFixed2.27-1+deb13u1DEBIAN-CVE-2026-5090
Debian 12libtemplate-perlFix pendingDEBIAN-CVE-2026-5090

What the vendor says

As published in the CVE record by CPANSec, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: Upgrade to version 3.103.

Workaround: Attribute values in templates that contain escaped HTML should use double quotes instead of single quotes.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.