CVE-2026-5090Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libtemplate-perl | Fixed | 3.102-1ubuntu0.1 | UBUNTU-CVE-2026-5090 |
| Ubuntu 25.10 | libtemplate-perl | Fixed | 2.27-1ubuntu0.25.10.1 | UBUNTU-CVE-2026-5090 |
| Ubuntu 24.04 | libtemplate-perl | Fixed | 2.27-1ubuntu0.24.04.1 | UBUNTU-CVE-2026-5090 |
| Ubuntu 22.04 | libtemplate-perl | Fixed | 2.27-1ubuntu0.22.04.1 | UBUNTU-CVE-2026-5090 |
| Ubuntu 20.04 | libtemplate-perl | Fix pending | UBUNTU-CVE-2026-5090 | |
| Ubuntu 18.04 | libtemplate-perl | Fix pending | UBUNTU-CVE-2026-5090 | |
| Ubuntu 16.04 | libtemplate-perl | Fix pending | UBUNTU-CVE-2026-5090 | |
| Debian 14 | libtemplate-perl | Fixed | 3.102-3 | DEBIAN-CVE-2026-5090 |
| Debian 13 | libtemplate-perl | Fixed | 2.27-1+deb13u1 | DEBIAN-CVE-2026-5090 |
| Debian 12 | libtemplate-perl | Fix pending | DEBIAN-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.
- Template-Toolkit: affected: before 3.103; fixed in
3.103
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:
- https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734… (patch)
- https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes (release-notes)
References
- https://github.com/abw/Template2/issues/327
- https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734.patch
- https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes
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.