CVE-2026-135711: FFmpeg before 9.1 XML Injection via TTML Muxer xml:lang Attribute
FFmpeg before 9.1 contains an XML injection vulnerability in ttmlwriteheader() in libavformat/ttmlenc.c that writes stream language metadata unescaped into the xml:lang attribute. Attackers can supply media files, such as Matroska subtitle tracks with crafted Language values, to inject markup into converted TTML documents and alter downstream parsing or rendering.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users or services that convert attacker-supplied media into TTML are exposed when the input contains crafted stream language metadata. The described example is a Matroska subtitle track with a malicious Language value.
What must an attacker control to exploit it?
An attacker must be able to provide a media file whose stream language metadata contains crafted XML markup and cause it to be converted using the TTML muxer. User interaction is required according to the supplied vector.
How can I determine whether an installation is affected?
FFmpeg versions before 9.1 are affected if they use the TTML muxer and process untrusted media metadata. The vulnerable behavior is in ttml_write_header() in libavformat/ttmlenc.c, where the stream language value is written into the xml:lang attribute without escaping.