Template::Plugin::HTML versions through 3.102 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-05-20 14:17:02 UTC |
| Description | Template::Plugin::HTML versions through 3.102 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.000100000 probability, percentile 0.012370000 (date 2026-05-27)
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
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | TODDR | TemplatePluginHTML | affected 3.102 custom | Not specified |
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/abw/Template2/pull/337/changes/11c78a7a771d4af505efeb754a0b87... | 9b29abf9-4ab0-4765-b253-1875cd9b441e | 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. |
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.