Medium
Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
Type: advisorySources: OSV
Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-46637
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 20:08 UTC · Revision 1
Source evidence
Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
core-osv · Original sourcePublished 14 Jul 2026, 21:25 UTC
Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.
osv:CVE-2026-46637
Complete source record
{
"id": "7b575dc4dff5518961031e7a597681a9451eb1ffe63cb3a3db1a2ae461f3cf68",
"url": "https://osv.dev/vulnerability/CVE-2026-46637",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`",
"summary": "Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output is not properly escaped. This issue is fixed in version 3.26.0.",
"evidence": "osv:CVE-2026-46637",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-46637",
"aliases": [
"CVE-2026-46637",
"GHSA-jv8m-2544-3pg3"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/twigphp/twig",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc"
},
{
"fixed": "84982072c79a7417b0d158a401d91344f3658299"
},
{
"fixed": "e36489d3521ecbfc08bdcc61294302557035f14a"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:symfony:twig:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "3.26.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "84982072c79a7417b0d158a401d91344f3658299"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "e36489d3521ecbfc08bdcc61294302557035f14a"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "1fcae487b180d78e6351f4e0afa91f9eab96a2bc"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v3.26.0"
}
]
}
}
],
"versions": [
"v3.25.0",
"v3.24.0",
"v3.23.0",
"v3.22.2",
"v3.22.1",
"v3.22.0",
"v3.21.1",
"v3.21.0",
"v3.20.0",
"v3.19.0",
"v3.18.0",
"v3.17.1",
"v3.17.0",
"v3.16.0",
"v3.15.0",
"v3.14.0",
"v3.11.0",
"v3.13.0",
"v3.12.0",
"v3.10.3",
"v3.10.2",
"v3.10.1",
"v3.10.0",
"v3.9.3",
"v3.9.2",
"v3.9.1",
"v3.9.0",
"v3.8.0",
"v3.7.1",
"v3.7.0",
"v3.6.1",
"v3.6.0",
"v3.5.1",
"v3.5.0",
"v3.4.3",
"v3.4.2",
"v3.4.1",
"v3.4.0",
"v3.3.10",
"v3.3.9",
"v3.3.8",
"v3.3.7",
"v3.3.6",
"v3.3.5",
"v3.3.4",
"v3.3.3",
"v3.3.2",
"v3.3.1",
"v3.3.0",
"v3.2.1",
"v3.1.1",
"v3.1.0",
"v3.0.5",
"v3.0.4",
"v3.0.3",
"v3.0.2",
"v3.0.1",
"v3.0.0",
"v3.0.0-BETA1",
"v2.8.1",
"v2.8.0",
"v2.7.4",
"v2.7.3",
"v2.7.2",
"v2.7.1",
"v2.7.0",
"v2.6.2",
"v2.6.1",
"v2.6.0",
"v2.5.0",
"v2.4.8",
"v2.4.7",
"v2.4.6",
"v2.4.5",
"v2.4.4",
"v2.4.3",
"v2.4.2",
"v2.4.1",
"v2.4.0",
"v2.3.2",
"v2.3.1",
"v2.3.0",
"v2.2.0",
"v2.1.0",
"v2.0.0",
"v1.18.0",
"v1.17.0",
"v1.16.3",
"v1.16.2",
"v1.16.1",
"v1.16.0",
"v1.15.1",
"v1.15.0",
"v1.14.2",
"v1.14.1",
"v1.14.0",
"v1.13.2",
"v1.13.1",
"v1.13.0",
"v1.12.3",
"v1.12.2",
"v1.12.1",
"v1.12.0",
"v1.12.0-RC1",
"v1.11.1",
"v1.11.0",
"v1.10.3",
"v1.10.2",
"v1.10.1",
"v1.10.0",
"v1.9.2",
"v1.9.1",
"v1.9.0",
"v1.8.3",
"v1.8.2",
"v1.8.1",
"v1.8.0",
"v1.7.0",
"v1.6.4",
"v1.6.3",
"v1.6.2",
"v1.6.1",
"v1.5.1",
"v1.6.0",
"v1.5.0",
"v1.5.0-RC2",
"v1.5.0-RC1",
"v1.4.0",
"v1.4.0-RC2",
"v1.4.0-RC1",
"v1.3.0",
"v1.3.0-RC1",
"v1.2.0",
"v1.2.0-RC1",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.1.0-RC3",
"v1.1.0-RC2",
"v1.1.0-RC1",
"v1.0.0",
"v1.0.0-RC2",
"v1.0.0-RC1",
"v0.9.10",
"v0.9.9",
"v0.9.8",
"v0.9.7",
"v0.9.6",
"v0.9.5",
"v0.9.4",
"v0.9.2",
"v0.9.1",
"v0.9.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46637.json"
}
}
],
"modified": "2026-10-28T02:30:39.142607009Z",
"provider": "osv",
"references": [
"https://github.com/twigphp/Twig/releases/tag/v3.26.0",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46637.json",
"https://github.com/twigphp/Twig/security/advisories/GHSA-jv8m-2544-3pg3",
"https://nvd.nist.gov/vuln/detail/CVE-2026-46637",
"https://github.com/twigphp/Twig/commit/84982072c79a7417b0d158a401d91344f3658299",
"https://github.com/twigphp/Twig/commit/e36489d3521ecbfc08bdcc61294302557035f14a"
],
"provider_metadata": {
"cwe_ids": [
"CWE-116"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46637.json"
}
},
"related_cves": [
{
"value": "CVE-2026-46637",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 506507,
"published_at": "2026-07-14T21:25:20.141+00:00"
}