ADVISORIES

PyPA Advisory Database

PYSEC-2026-1122

Ansible template injection vulnerability

Details

A template injection flaw was found in Ansible where a user's controller internal templating operations may remove the unsafe designation from template data. This issue could allow an attacker to use a specially crafted file to introduce templating injection when supplying templating data.

Affected packages

EcosystemPackageAffected versions
PyPIansible-core
All versions before 2.14.12 (fixed in 2.14.12)
From 2.15.0 before 2.15.8 (fixed in 2.15.8)
From 2.16.0 before 2.16.1 (fixed in 2.16.1)

References