Search
Find a vulnerability
Search criteria
2 vulnerabilities found for twig/html-extra by Twig
CVE-2026-133769 (GCVE-0-2026-133769)
Vulnerability from nvd – Published: 2026-11-24 13:07 – Updated: 2026-11-24 13:07
VLAI
EPSS
VEX
Title
Sandbox property allow-list bypass via `html_cva()` variant values
Summary
Cva::apply() converted the values of variants, default variants and compound variants with (array). These values come from the arguments of html_cva(). A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:
{{ html_cva('base', {c: {p: user}}).apply({c: 'p'}) }}
Variant maps that are ArrayAccess objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.
Applications are affected when the sandbox allows the html_cva function and the apply method of Twig\Extra\Html\Cva.
A value that isn't an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they're arrays.
Severity
CWE
- CWE-863 - Incorrect Authorization
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133769 | vendor-advisory |
| https://github.com/twigphp/Twig/security/advisori… | vendor-advisory |
| https://github.com/twigphp/Twig/commit/ead08daef1… | patch |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| Twig | twig/html-extra |
Affected:
3.12.0 , < 3.31.1
(semver)
|
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "twig/html-extra",
"product": "twig/html-extra",
"repo": "https://github.com/twigphp/Twig",
"vendor": "Twig",
"versions": [
{
"lessThan": "3.31.1",
"status": "affected",
"version": "3.12.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "remediation developer",
"value": "Fabien Potencier"
}
],
"datePublic": "2026-11-24T12:58:43.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "`Cva::apply()` converted the values of variants, default variants and compound variants with `(array)`. These values come from the arguments of `html_cva()`. A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:\n\n```twig\n{{ html_cva(\u0027base\u0027, {c: {p: user}}).apply({c: \u0027p\u0027}) }}\n```\n\nVariant maps that are `ArrayAccess` objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.\n\nApplications are affected when the sandbox allows the `html_cva` function and the `apply` method of `Twig\\Extra\\Html\\Cva`.\n\nA value that isn\u0027t an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they\u0027re arrays."
}
],
"value": "Cva::apply() converted the values of variants, default variants and compound variants with (array). These values come from the arguments of html_cva(). A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:\n\n{{ html_cva(\u0027base\u0027, {c: {p: user}}).apply({c: \u0027p\u0027}) }}\n\nVariant maps that are ArrayAccess objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.\n\nApplications are affected when the sandbox allows the html_cva function and the apply method of Twig\\Extra\\Html\\Cva.\n\nA value that isn\u0027t an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they\u0027re arrays."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 2.3,
"baseSeverity": "LOW",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T13:07:52.236Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133769",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133769"
},
{
"name": "GHSA-gv3c-qhxr-hh56",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-gv3c-qhxr-hh56"
},
{
"tags": [
"patch"
],
"url": "https://github.com/twigphp/Twig/commit/ead08daef16e3a0b08d196717e929fc2ebd2fb11"
}
],
"source": {
"advisory": "GHSA-gv3c-qhxr-hh56",
"discovery": "UNKNOWN"
},
"title": "Sandbox property allow-list bypass via `html_cva()` variant values",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133769",
"datePublished": "2026-11-24T13:07:52.236Z",
"dateReserved": "2026-11-20T14:01:43.159Z",
"dateUpdated": "2026-11-24T13:07:52.236Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
CVE-2026-133769 (GCVE-0-2026-133769)
Vulnerability from cvelistv5 – Published: 2026-11-24 13:07 – Updated: 2026-11-24 13:07
VLAI
EPSS
VEX
Title
Sandbox property allow-list bypass via `html_cva()` variant values
Summary
Cva::apply() converted the values of variants, default variants and compound variants with (array). These values come from the arguments of html_cva(). A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:
{{ html_cva('base', {c: {p: user}}).apply({c: 'p'}) }}
Variant maps that are ArrayAccess objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.
Applications are affected when the sandbox allows the html_cva function and the apply method of Twig\Extra\Html\Cva.
A value that isn't an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they're arrays.
Severity
CWE
- CWE-863 - Incorrect Authorization
References
3 references
| URL | Tags |
|---|---|
| https://symfony.com/cve-2026-133769 | vendor-advisory |
| https://github.com/twigphp/Twig/security/advisori… | vendor-advisory |
| https://github.com/twigphp/Twig/commit/ead08daef1… | patch |
Impacted products
1 product
| Vendor | Product | Version | |
|---|---|---|---|
| Twig | twig/html-extra |
Affected:
3.12.0 , < 3.31.1
(semver)
|
Date Public
2026-11-24 12:58
{
"containers": {
"cna": {
"affected": [
{
"collectionURL": "https://packagist.org",
"defaultStatus": "unaffected",
"packageName": "twig/html-extra",
"product": "twig/html-extra",
"repo": "https://github.com/twigphp/Twig",
"vendor": "Twig",
"versions": [
{
"lessThan": "3.31.1",
"status": "affected",
"version": "3.12.0",
"versionType": "semver"
}
]
}
],
"credits": [
{
"lang": "en",
"type": "remediation developer",
"value": "Fabien Potencier"
}
],
"datePublic": "2026-11-24T12:58:43.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/markdown",
"value": "`Cva::apply()` converted the values of variants, default variants and compound variants with `(array)`. These values come from the arguments of `html_cva()`. A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:\n\n```twig\n{{ html_cva(\u0027base\u0027, {c: {p: user}}).apply({c: \u0027p\u0027}) }}\n```\n\nVariant maps that are `ArrayAccess` objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.\n\nApplications are affected when the sandbox allows the `html_cva` function and the `apply` method of `Twig\\Extra\\Html\\Cva`.\n\nA value that isn\u0027t an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they\u0027re arrays."
}
],
"value": "Cva::apply() converted the values of variants, default variants and compound variants with (array). These values come from the arguments of html_cva(). A sandboxed template could therefore pass any object of its context, and print the private and protected properties of that object:\n\n{{ html_cva(\u0027base\u0027, {c: {p: user}}).apply({c: \u0027p\u0027}) }}\n\nVariant maps that are ArrayAccess objects were also read with a key that the template chooses, without the property check of the sandbox. The template then printed the offsets that the object returned.\n\nApplications are affected when the sandbox allows the html_cva function and the apply method of Twig\\Extra\\Html\\Cva.\n\nA value that isn\u0027t an array is now treated as a single item, so objects are dropped and never match a variant. Variant maps are also only used when they\u0027re arrays."
}
],
"metrics": [
{
"cvssV4_0": {
"baseScore": 2.3,
"baseSeverity": "LOW",
"vectorString": "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
"version": "4.0"
},
"format": "CVSS",
"scenarios": [
{
"lang": "en",
"value": "GENERAL"
}
]
}
],
"problemTypes": [
{
"descriptions": [
{
"cweId": "CWE-863",
"description": "CWE-863 Incorrect Authorization",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-24T13:07:52.236Z",
"orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"shortName": "Symfony"
},
"references": [
{
"name": "CVE-2026-133769",
"tags": [
"vendor-advisory"
],
"url": "https://symfony.com/cve-2026-133769"
},
{
"name": "GHSA-gv3c-qhxr-hh56",
"tags": [
"vendor-advisory"
],
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-gv3c-qhxr-hh56"
},
{
"tags": [
"patch"
],
"url": "https://github.com/twigphp/Twig/commit/ead08daef16e3a0b08d196717e929fc2ebd2fb11"
}
],
"source": {
"advisory": "GHSA-gv3c-qhxr-hh56",
"discovery": "UNKNOWN"
},
"title": "Sandbox property allow-list bypass via `html_cva()` variant values",
"x_generator": {
"engine": "symfony/ghsa-to-cve"
}
}
},
"cveMetadata": {
"assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
"assignerShortName": "Symfony",
"cveId": "CVE-2026-133769",
"datePublished": "2026-11-24T13:07:52.236Z",
"dateReserved": "2026-11-20T14:01:43.159Z",
"dateUpdated": "2026-11-24T13:07:52.236Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}