Template::Plugin::HTML versions through 3.102 for Perl allows HTML and JavaScript to be injected

Summary

CVECVE-2026-5090
StatePUBLISHED
AssignerCPANSec
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-05-19 22:16:39 UTC
Updated2026-05-20 14:17:02 UTC
DescriptionTemplate::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


VersionSourceTypeScoreSeverityVector
3.1ADPDECLARED6.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
3.1134c704f-9b21-4f2e-91b3-4a467353bcc0Secondary6.1MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA TODDR TemplatePluginHTML affected 3.102 custom Not specified

References

ReferenceSourceLinkTags
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

Additional Advisory Data

SourceTimeEvent
CNA2024-12-01T00:00:00.000ZIssue reported in GitHub.
CNA2026-02-21T00:00:00.000ZPull request submitted.
CNA2026-03-22T00:00:00.000ZPull request merged.
CNA2026-03-22T00:00:00.000ZIssue reported to CPANSec.
CNA2026-03-28T00:00:00.000ZCVE assigned.

Workarounds

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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report