{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-133763",
        "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "state": "PUBLISHED",
        "assignerShortName": "Symfony",
        "dateReserved": "2026-11-20T14:01:43.158Z",
        "datePublished": "2026-11-24T13:07:46.698Z",
        "dateUpdated": "2026-12-01T19:38:31.906Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
                "shortName": "Symfony",
                "dateUpdated": "2026-11-24T13:07:46.698Z"
            },
            "title": "Sandbox `__toString()` policy bypass via the `is true` test",
            "datePublic": "2026-11-24T12:58:27.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "The sandbox checks that a template may call toString() on an object before converting it to a string. For an object, the is true test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied toString() method:\n\n{{ obj is true }}\n\nThe same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like {% if obj is true %}, isn't affected, since it doesn't convert the object to a string.\n\nThe sandbox now checks the result of tests like the result of filters and functions.",
                    "supportingMedia": [
                        {
                            "type": "text/markdown",
                            "base64": false,
                            "value": "The sandbox checks that a template may call `__toString()` on an object before converting it to a string. For an object, the `is true` test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied `__toString()` method:\n\n```twig\n{{ obj is true }}\n```\n\nThe same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like `{% if obj is true %}`, isn't affected, since it doesn't convert the object to a string.\n\nThe sandbox now checks the result of tests like the result of filters and functions."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "Twig",
                    "product": "twig/twig",
                    "collectionURL": "https://packagist.org",
                    "packageName": "twig/twig",
                    "repo": "https://github.com/twigphp/Twig",
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "3.21.0",
                            "status": "affected",
                            "lessThan": "3.31.1",
                            "versionType": "semver"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-693",
                            "description": "CWE-693 Protection Mechanism Failure",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "cweId": "CWE-863",
                            "description": "CWE-863 Incorrect Authorization",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ],
                    "cvssV4_0": {
                        "version": "4.0",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
                        "baseScore": 5.3,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "references": [
                {
                    "url": "https://symfony.com/cve-2026-133763",
                    "name": "CVE-2026-133763",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-567w-cx2v-jc85",
                    "name": "GHSA-567w-cx2v-jc85",
                    "tags": [
                        "vendor-advisory"
                    ]
                },
                {
                    "url": "https://github.com/twigphp/Twig/commit/a41bd2dd466d771cc384b9730be6190eb5a4f4d0",
                    "tags": [
                        "patch"
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "Eric Labrador Sainz",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Jacko",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Inanna Malick",
                    "type": "finder"
                },
                {
                    "lang": "en",
                    "value": "Fabien Potencier",
                    "type": "remediation developer"
                }
            ],
            "source": {
                "advisory": "GHSA-567w-cx2v-jc85",
                "discovery": "UNKNOWN"
            },
            "x_generator": {
                "engine": "symfony/ghsa-to-cve"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2026-133763",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2026-11-30T17:56:06.087156Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-12-01T19:38:31.906Z"
                }
            }
        ]
    }
}