Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected
Summary
| CVE | CVE-2026-5090 |
|---|---|
| State | PUBLISHED |
| Assigner | CPANSec |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-19 22:16:39 UTC |
| Updated | 2026-09-19 12:16:39 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.1 MEDIUM from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS: 0.002920000 probability, percentile 0.219830000 (date 2026-09-21)
Problem Types: CWE-79 | CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 6.1 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
There are no known software configurations currently associated with this CVE in NVD or the CVE Program record.
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/abw/Template2/issues/327 | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| www.openwall.com/lists/oss-security/2026/05/19/40 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | github.com | |
| metacpan.org/release/TODDR/Template-Toolkit-3.103/changes | 9b29abf9-4ab0-4765-b253-1875cd9b441e | metacpan.org | |
| github.com/abw/Template2/pull/337/changes/11c78a7a771d4af505efeb754a0b87... | MITRE | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2024-12-01T00:00:00.000Z | Issue reported in GitHub. |
| CNA | 2026-02-21T00:00:00.000Z | Pull request submitted. |
| CNA | 2026-03-22T00:00:00.000Z | Pull request merged. |
| CNA | 2026-03-22T00:00:00.000Z | Issue reported to CPANSec. |
| CNA | 2026-03-28T00:00:00.000Z | CVE assigned. |
| CNA | 2026-05-19T00:00:00.000Z | CVE published. |
| CNA | 2026-05-21T00:00:00.000Z | Template-Toolkit version 3.103 released. |
Solutions
CNA: Upgrade to version 3.103.
Workarounds
CNA: Attribute values in templates that contain escaped HTML should use double quotes instead of single quotes.
There are currently no legacy QID mappings associated with this CVE.