USN-8377-1: Template-Toolkit vulnerability

Publication date

3 June 2026

Overview

Template-Toolkit could allow arbitrary HTML and JavaScript to be injected into generated output.


Packages

Details

It was discovered that Template-Toolkit did not properly escape single
quotes in the html_filter function of Template::Plugin::HTML. An attacker
could possibly use this issue to inject arbitrary HTML and JavaScript into
generated output.

It was discovered that Template-Toolkit did not properly escape single
quotes in the html_filter function of Template::Plugin::HTML. An attacker
could possibly use this issue to inject arbitrary HTML and JavaScript into
generated output.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
26.04 LTS resolute libtemplate-perl –  3.102-1ubuntu0.1
25.10 questing libtemplate-perl –  2.27-1ubuntu0.25.10.1
24.04 LTS noble libtemplate-perl –  2.27-1ubuntu0.24.04.1
22.04 LTS jammy libtemplate-perl –  2.27-1ubuntu0.22.04.1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›