CVE-2026-133773
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
Debian Mixed 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | php-twig |
Affected | — |
| sid | php-twig |
Fixed | 3.31.1-1 |
| forky | php-twig |
Fixed | 3.31.1-1 |
| bookworm | php-twig |
Affected | — |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Packagist | twig/markdown-extra | >=2.0.0,<3.0.0|>=3.0.0,<3.31.1 | |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| twig | twig_markdown-extra | {"endExcluding":"3.31.1"} | 3.31.1 |
References
CWEs
CWE-770
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.