<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c" -->

---
title: CVE-2026-133773 Unbounded Converter Memoisation in...
description: Twig Markdown Extra before version 3.31.1 has an unbounded memory growth issue in its html_to_markdown filter. The filter caches an HtmlConverter instance for...
canonical: https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: CVE-2026-133773 Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options (Symfony Blog) | daily.dev
og:description: Twig Markdown Extra before version 3.31.1 has an unbounded memory growth issue in its html_to_markdown filter. The filter caches an HtmlConverter instance for...
og:url: https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c
og:image: https://api.daily.dev/og/posts/Kca4XLl7c.png
og:image:alt: CVE-2026-133773 Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options (Symfony Blog)
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# CVE-2026-133773 Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 1 min read · 0 upvotes · 0 comments

## Summary

Twig Markdown Extra before version 3.31.1 has an unbounded memory growth issue in its html_to_markdown filter. The filter caches an HtmlConverter instance for every distinct options mapping it receives, stored in a static array with no size limit or eviction. A template that passes options derived from user input, or a sandboxed template, can grow this cache indefinitely, exhausting memory on long-running workers. Version 3.31.1 caps the cache at 100 converters, like the formatter caches of IntlExtension. Nicolas Grekas reported the issue.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled-options>

## Questions this post answers

### What is CVE-2026-133773 in twig/markdown-extra and how is it fixed?

CVE-2026-133773 is a memory exhaustion issue in twig/markdown-extra's html_to_markdown filter, which caches an HtmlConverter per distinct options mapping in an unbounded static array. A template passing user-controlled options, or a sandboxed template, can grow this cache indefinitely, consuming memory in long-running workers. Version 3.31.1 fixes it by capping the cache at 100 converters, matching IntlExtension's formatter cache approach.

_Teams running long-lived Symfony workers track advisories like this twig/markdown-extra fix on daily.dev._

### Which version of twig/markdown-extra fixes the unbounded converter cache vulnerability?

Version 3.31.1 fixes the vulnerability. Versions before 3.31.1 are affected by the unbounded HtmlConverter cache in the html_to_markdown filter, which could grow without limit and exhaust memory in long-running worker processes.

_Developers patching Symfony and Twig dependencies keep tabs on fixes like this via daily.dev._

## Similar posts on daily.dev

- [CVE-2026-46637: HTML-output filters in twig/\* extras incorrectly declared \`is\_safe => \['all'\]\` \(Symfony Blog\)](https://daily.dev/posts/cve-2026-46637-html-output-filters-in-twig-extras-incorrectly-declared-is-safe-all-symf-id6cko5hn) · Symfony · 2 upvotes · 1 comments
- [Twig 3.31.1 released \(Symfony Blog\)](https://daily.dev/posts/twig-3-31-1-released-symfony-blog--o7sva0txx) · Symfony · 0 upvotes · 0 comments
- [Critical Heap Buffer Overflow in NGINX Allows Unauthenticated Remote Code Execution](https://daily.dev/posts/critical-heap-buffer-overflow-in-nginx-allows-unauthenticated-remote-code-execution-s6y8w0os9) · Orca Security Blog · 2 upvotes · 0 comments
- [CVE-2026-49216: XSS in symfony/ux-autocomplete via unescaped AJAX response data \(Symfony Blog\)](https://daily.dev/posts/cve-2026-49216-xss-in-symfony-ux-autocomplete-via-unescaped-ajax-response-data-symfony-blog--be5s2bwyd) · Symfony · 0 upvotes · 0 comments

---

Tags: [#cyber](https://daily.dev/tags/cyber), [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"CVE-2026-133773 Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options (Symfony Blog)","url":"https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c"},"datePublished":"2026-11-24T13:51:15.213Z","dateModified":"2026-11-24T13:51:39.446Z","description":"Twig Markdown Extra before version 3.31.1 has an unbounded memory growth issue in its html_to_markdown filter. The filter caches an HtmlConverter instance for...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/327b244859fddae8f3a20d0225898aa0?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Symfony","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Symfony","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cc07051b7112472f9729e73c14660a64","url":"https://daily.dev/sources/symfony"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cyber,php,symfony","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Symfony","item":"https://daily.dev/sources/symfony"},{"@type":"ListItem","position":3,"name":"CVE-2026-133773 Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options (Symfony Blog)"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/cve-2026-133773-unbounded-converter-memoisation-in-twig-markdown-extra-keyed-on-template-controlled--kca4xll7c#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-133773 in twig/markdown-extra and how is it fixed?","acceptedAnswer":{"@type":"Answer","text":"CVE-2026-133773 is a memory exhaustion issue in twig/markdown-extra's html_to_markdown filter, which caches an HtmlConverter per distinct options mapping in an unbounded static array. A template passing user-controlled options, or a sandboxed template, can grow this cache indefinitely, consuming memory in long-running workers. Version 3.31.1 fixes it by capping the cache at 100 converters, matching IntlExtension's formatter cache approach. Teams running long-lived Symfony workers track advisories like this twig/markdown-extra fix on daily.dev."}},{"@type":"Question","name":"Which version of twig/markdown-extra fixes the unbounded converter cache vulnerability?","acceptedAnswer":{"@type":"Answer","text":"Version 3.31.1 fixes the vulnerability. Versions before 3.31.1 are affected by the unbounded HtmlConverter cache in the html_to_markdown filter, which could grow without limit and exhaust memory in long-running worker processes. Developers patching Symfony and Twig dependencies keep tabs on fixes like this via daily.dev."}}]}
```

