# CVE-2026-5090: Template::Plugin::HTML versions before 3.103 for Perl allows HTML and JavaScript to be injected

- Severity: Medium 6.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-05-19T21:30:03.552Z
- Modified: 2026-09-19T12:16:39.640Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CPANSec

## 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.

(As written by CVE List.)

## Affected

- Template-Toolkit: before 3.103

## References

- <https://github.com/abw/Template2/issues/327> (issue-tracking)
- <https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734.patch> (patch)
- <https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes> (release-notes)
- <http://www.openwall.com/lists/oss-security/2026/05/19/40>

## Sources

- CVE List: [CVE-2026-5090](https://www.cve.org/CVERecord?id=CVE-2026-5090), CVE Terms of Use, modified 2026-09-19
- NVD: [CVE-2026-5090](https://nvd.nist.gov/vuln/detail/CVE-2026-5090), Public domain, modified 2026-09-19

---

Page: https://cve.day/CVE-2026-5090 · Whole record: https://cve.day/CVE-2026-5090.json · Rebuilt by cve.day 2026-11-25T22:59:22.001Z
