CVE-2026-5090
Reported by cpansec · Published May 19, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| Template-Toolkit | cpan.org | 3.103, 3.102 |
| perl-Template-Toolkit | Amazon Linux | 3.009-3.amzn2023.0.4, 2.24-5.amzn2.0.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 0 | ||
| 0 | ||
| amazon:2023 | perl-Template-Toolkit | 0 |
| TODDR | Template::Plugin::HTML | 0 |
| amazon:2 | perl-Template-Toolkit | 0 |
Timeline
- May 19, 2026 CVE Published
- May 19, 2026 PoC Published (3 in total, the first dated here)
- May 20, 2026 EPSS Score (30 in total, the first dated here)
- May 20, 2026 Coalition ESS Score
- May 20, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-5090
vulnetix vdb fixes CVE-2026-5090
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-5090/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- issue-tracking
- patch
- release-notes
- http://www.openwall.com/lists/oss-security/2026/05/19/40 url
- https://github.com/abw/Template2/pull/337/changes/11c78a7a771d4af505efeb754a0b8775689c2eae fix