CVE-2026-5090
published medium CVSS 3.1 · 6.1Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | Template-Toolkit0 to < 3.103 · Other versions: unaffected | Affected | Not stated | CPANSec |
| Amazon Linux | AL2 | Release evaluationALAS2-2026-3345 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1797 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | jammy | libtemplate-perl | Advisory build | 2.27-1ubuntu0.22.04.1 | USN-8377-1 |
| Amazon Linux | AL2 | perl-Template-Toolkitaarch64 | Listed in advisory | Not stated | ALAS2-2026-3345 |
| Ubuntu | noble | libtemplate-perl | Advisory build | 2.27-1ubuntu0.24.04.1 | USN-8377-1 |
| Ubuntu | questing | libtemplate-perl | Advisory build | 2.27-1ubuntu0.25.10.1 | USN-8377-1 |
| Ubuntu | resolute | libtemplate-perl | Advisory build | 3.102-1ubuntu0.1 | USN-8377-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | perl-Template-Toolkiti686 | Listed in advisory | Not stated | ALAS2-2026-3345 |
| Amazon Linux | AL2 | perl-Template-Toolkitsrc | Listed in advisory | Not stated | ALAS2-2026-3345 |
| Amazon Linux | AL2 | perl-Template-Toolkitx86_64 | Listed in advisory | Not stated | ALAS2-2026-3345 |
| Amazon Linux | AL2023 | perl-Template-Toolkitaarch64 | Listed in advisory | Not stated | ALAS2023-2026-1797 |
| Amazon Linux | AL2023 | perl-Template-Toolkitsrc | Listed in advisory | Not stated | ALAS2023-2026-1797 |
| Amazon Linux | AL2023 | perl-Template-Toolkitx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1797 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Template-Toolkit | 0 to < 3.103 (affected · custom)Default: unaffected | CPANSec · cna |
Weaknesses
1- CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation
References
4Provider assertions
3CPANSec · cna
Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6c562803f17586bc169da0ce681a81e0e1c57f81c954e0ea6f5526ab867068fa
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record