FFmpeg before 9.1 contains an XML injection vulnerability in ttml_write_header() 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.
https://github.com/FFmpeg/FFmpeg/commit/bcb5d56b752cba0117eee5d6509dfc081de4c326
https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/ttmlenc.c#L152
https://github.com/FFmpeg/FFmpeg