CVE-2026-135711: FFmpeg before 9.1 XML Injection via TTML Muxer xml:lang Attribute

Published Nov 24, 2026
·
Updated

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

1 affected component
FFmpeg FFmpeg<9.1

Event History

Nov 24, 2026
CVE Published
via MITRE·03:14 AM
Data Sourced
via MITRE·03:14 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203