cvelo
P4 · InfoCVSS 2.3EPSS 0.6%

Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options

  • CVE-2026-133773
  • EUVD-2026-133922

Description

The html_to_markdown filter of twig/markdown-extra keeps an HtmlConverter for each distinct mapping of options it receives. They're kept in a static array, with no size limit and no eviction. The options are an argument of the filter. A template that passes options taken from the input, or a sandboxed template, can therefore make this cache grow without limit. The cache outlives the environment, so it fills the memory of long-running workers. The cache now keeps at most 100 converters, like the formatter caches of IntlExtension.

Text from the CVE.org record.

Recommendation

  • Twig twig/markdown-extra

    • If you run a version before 3.31.1update to 3.31.1 or later

Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • Twig twig/markdown-extra

    Affected versionsFixed in
    before 3.31.13.31.1

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.