Search
Find a vulnerability
Search criteria
2 vulnerabilities found for twig/markdown-extra by Twig
CVE-2026-133773 (GCVE-0-2026-133773)
Vulnerability from nvd – Published: 2026-11-24 13:07 – Updated: 2026-11-24 13:07
VLAI
EPSS
VEX
Title
Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options
Summary
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.
Severity
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133773 | vendor-advisory |
| https://github.com/twigphp/Twig/security/advisori… | vendor-advisory |
| https://github.com/twigphp/Twig/commit/6f9962f230… | patch |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| Twig | twig/markdown-extra |
Affected:
0 , < 3.31.1
(semver)
|
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "twig/markdown-extra",
"product": "twig/markdown-extra",
"repo": "https://github.com/twigphp/Twig",
"vendor": "Twig",
"versions": [
{
"lessThan": "3.31.1",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Nicolas Grekas"
}
],
"datePublic": "2026-11-24T12:58:53.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "The `html_to_markdown` filter of twig/markdown-extra keeps an `HtmlConverter` for each distinct mapping of options it receives. They\u0027re 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.\n\nThe cache now keeps at most 100 converters, like the formatter caches of `IntlExtension`."
}
],
"value": "The html_to_markdown filter of twig/markdown-extra keeps an HtmlConverter for each distinct mapping of options it receives. They\u0027re 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.\n\nThe cache now keeps at most 100 converters, like the formatter caches of IntlExtension."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 2.3,
"baseSeverity": "LOW",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T13:07:55.938Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133773",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133773"
},
{
"name": "GHSA-cxp7-29fv-2j25",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25"
},
{
"tags": [
"patch"
],
"url": "https://github.com/twigphp/Twig/commit/6f9962f230425da39e970023a322d641c9089035"
}
],
"source": {
"advisory": "GHSA-cxp7-29fv-2j25",
"discovery": "UNKNOWN"
},
"title": "Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133773",
"datePublished": "2026-11-24T13:07:55.938Z",
"dateReserved": "2026-11-20T14:01:43.159Z",
"dateUpdated": "2026-11-24T13:07:55.938Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133773 (GCVE-0-2026-133773)
Vulnerability from cvelistv5 – Published: 2026-11-24 13:07 – Updated: 2026-11-24 13:07
VLAI
EPSS
VEX
Title
Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options
Summary
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.
Severity
CWE
- CWE-770 - Allocation of Resources Without Limits or Throttling
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133773 | vendor-advisory |
| https://github.com/twigphp/Twig/security/advisori… | vendor-advisory |
| https://github.com/twigphp/Twig/commit/6f9962f230… | patch |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| Twig | twig/markdown-extra |
Affected:
0 , < 3.31.1
(semver)
|
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "twig/markdown-extra",
"product": "twig/markdown-extra",
"repo": "https://github.com/twigphp/Twig",
"vendor": "Twig",
"versions": [
{
"lessThan": "3.31.1",
"status": "affected",
"version": "0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "finder",
"value": "Nicolas Grekas"
}
],
"datePublic": "2026-11-24T12:58:53.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "The `html_to_markdown` filter of twig/markdown-extra keeps an `HtmlConverter` for each distinct mapping of options it receives. They\u0027re 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.\n\nThe cache now keeps at most 100 converters, like the formatter caches of `IntlExtension`."
}
],
"value": "The html_to_markdown filter of twig/markdown-extra keeps an HtmlConverter for each distinct mapping of options it receives. They\u0027re 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.\n\nThe cache now keeps at most 100 converters, like the formatter caches of IntlExtension."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 2.3,
"baseSeverity": "LOW",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-770",
"description": "CWE-770 Allocation of Resources Without Limits or Throttling",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T13:07:55.938Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133773",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133773"
},
{
"name": "GHSA-cxp7-29fv-2j25",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-cxp7-29fv-2j25"
},
{
"tags": [
"patch"
],
"url": "https://github.com/twigphp/Twig/commit/6f9962f230425da39e970023a322d641c9089035"
}
],
"source": {
"advisory": "GHSA-cxp7-29fv-2j25",
"discovery": "UNKNOWN"
},
"title": "Unbounded Converter Memoisation in twig/markdown-extra Keyed on Template-Controlled Options",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133773",
"datePublished": "2026-11-24T13:07:55.938Z",
"dateReserved": "2026-11-20T14:01:43.159Z",
"dateUpdated": "2026-11-24T13:07:55.938Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}