Template-Toolkit vulnerability
Published: Wed, 03 Jun 2026 13:24
Summary
Template-Toolkit could allow arbitrary HTML and JavaScript to be injected into generated output.
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.
Recommended actions per Ubuntu release
StackPatch playbook auto-generated per release codename and per affected package.
Ubuntu jammy
libtemplate-perl→2.27-1ubuntu0.22.04.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.22.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
libtemplate-perl→2.27-1ubuntu0.22.04.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.22.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu noble
libtemplate-perl→2.27-1ubuntu0.24.04.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.24.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
libtemplate-perl→2.27-1ubuntu0.24.04.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.24.04.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu questing
libtemplate-perl→2.27-1ubuntu0.25.10.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.25.10.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
libtemplate-perl→2.27-1ubuntu0.25.10.1apt_upgradeStandard apt upgrade. Install 2.27-1ubuntu0.25.10.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
Ubuntu resolute
libtemplate-perl→3.102-1ubuntu0.1apt_upgradeStandard apt upgrade. Install 3.102-1ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
libtemplate-perl→3.102-1ubuntu0.1apt_upgradeStandard apt upgrade. Install 3.102-1ubuntu0.1 from the apt repo.
sudo apt-get update sudo apt-get install --only-upgrade -y libtemplate-perl
Most apt upgrades restart their service automatically. needrestart lists anything else.
Are YOU affected by USN-8377-1?
5-second check on your actual server. Reads /etc/os-release, uname -r, and dpkg-query; matches against the live USN + Debian Security Tracker feeds; tells you whether USN-8377-1 (and any other live CVE) applies. Anonymous, no signup.
curl https://mindsparkstack.com/scan.sh | bash
StackPatch runs this match against YOUR installed packages every hour
Free 1-server / $99 lifetime founder seat (50 only) / $19+/mo monthly. Indie pricing.