{"items":[{"id":"NVI-00006533","kind":"vulnerability","title":"Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys","revision":3,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-5v5v-ww74-355v","CVE-2026-48806"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.27.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-2da47dd5b9667df7fd54958a36db52ee"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"9.1 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-0cd028a80104fad6a5c7601a8e9741e9"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"7.1 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-0cd028a80104fad6a5c7601a8e9741e9"},{"kind":"EPSS","as_of":"2026-11-01T12:00:16.000Z","value":"0.418%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.36148. Missing scores are unknown.","source_id":"sr-2da47dd5b9667df7fd54958a36db52ee"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-b896e7f7913e7a4d4378950f4d2144f5","url":"https://github.com/advisories/GHSA-5v5v-ww74-355v","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-5v5v-ww74-355v","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.927Z"},{"id":"sr-0cd028a80104fad6a5c7601a8e9741e9","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48806","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-48806","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:22.913Z"},{"id":"sr-2da47dd5b9667df7fd54958a36db52ee","url":"https://www.first.org/epss/data.html","basis":"official_catalog","notes":"FIRST EPSS; probability of exploitation in the next 30 days, not local compromise. Dataset date/model retained; FIRST services terms apply.","title":"CVE-2026-48806","publisher":"FIRST EPSS","observed_at":"2026-11-01T14:28:32.281Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThis is a residual bypass of CVE-2026-47732 / GHSA-pr2w-4gpj-cpq4 left after the initial fix for unguarded `__toString()` calls.\n\nIn 3.26.0 the sandbox visitor was extended to wrap every child node that its parent will string-coerce at runtime with `CheckToStringNode`, gated by the new `CoercesChildrenToStringInterface`. `ArrayExpression` did not implement the interface for its mapping keys: when a dynamic key expression resolves to a `Stringable` object, `ArrayExpression::compile()` emits a raw `(string)` cast (via `StringCastUnary` for `ContextVariable` keys, and no cast at all for richer key expressions). PHP then invokes `__toString()` directly, without ever calling `SandboxExtension::ensureToStringAllowed()`.\n\nA sandboxed template author can therefore trigger `__toString()` on any object reachable in the render context by using it as a dynamic mapping key, for example:\n\n```twig\n{% set arr = {(obj): \"value\"} %}\n```\n\nDirect output of the same object is correctly blocked, which makes this a clear policy enforcement gap. The reliable demonstrated impact is unauthorised disclosure of data returned by `__toString()`.\n\n### Resolution\n\n`ArrayExpression` now declares i","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.27.0"]}],"null_published_at":"2026-11-06T15:18:11.464Z","source_updated_at":"2026-09-10T03:50:48.434Z","source_disclosed_at":"2026-06-30T18:42:49.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Dated EPSS estimate updated; this is not a new disclosure or proof of exploitation.","null_first_observed_at":"2026-10-31T21:41:59.927Z"},{"id":"NVI-00006533","kind":"vulnerability","title":"Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected.","NVD lastModified does not establish freshness of every associated CPE record."],"lifecycle":"active","identifiers":["GHSA-5v5v-ww74-355v","CVE-2026-48806"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.27.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null},{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-0cd028a80104fad6a5c7601a8e9741e9"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"9.1 CRITICAL (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-0cd028a80104fad6a5c7601a8e9741e9"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"7.1 HIGH (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-0cd028a80104fad6a5c7601a8e9741e9"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-b896e7f7913e7a4d4378950f4d2144f5","url":"https://github.com/advisories/GHSA-5v5v-ww74-355v","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-5v5v-ww74-355v","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.927Z"},{"id":"sr-0cd028a80104fad6a5c7601a8e9741e9","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48806","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-48806","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:22.913Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThis is a residual bypass of CVE-2026-47732 / GHSA-pr2w-4gpj-cpq4 left after the initial fix for unguarded `__toString()` calls.\n\nIn 3.26.0 the sandbox visitor was extended to wrap every child node that its parent will string-coerce at runtime with `CheckToStringNode`, gated by the new `CoercesChildrenToStringInterface`. `ArrayExpression` did not implement the interface for its mapping keys: when a dynamic key expression resolves to a `Stringable` object, `ArrayExpression::compile()` emits a raw `(string)` cast (via `StringCastUnary` for `ContextVariable` keys, and no cast at all for richer key expressions). PHP then invokes `__toString()` directly, without ever calling `SandboxExtension::ensureToStringAllowed()`.\n\nA sandboxed template author can therefore trigger `__toString()` on any object reachable in the render context by using it as a dynamic mapping key, for example:\n\n```twig\n{% set arr = {(obj): \"value\"} %}\n```\n\nDirect output of the same object is correctly blocked, which makes this a clear policy enforcement gap. The reliable demonstrated impact is unauthorised disclosure of data returned by `__toString()`.\n\n### Resolution\n\n`ArrayExpression` now declares i","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.27.0"]}],"null_published_at":"2026-11-01T14:34:07.515Z","source_updated_at":"2026-09-10T03:50:48.434Z","source_disclosed_at":"2026-06-30T18:42:49.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"Source facts changed; compare the preserved prior revision.","null_first_observed_at":"2026-10-31T21:41:59.927Z"},{"id":"NVI-00006533","kind":"vulnerability","title":"Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-5v5v-ww74-355v","CVE-2026-48806"],"plain_summary":"OSV carries this publisher advisory for twig/twig. This is an aggregated source copy; consult the original publisher and compare update dates.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"The original advisory lists fixed boundaries 3.27.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"action_type":"vendor_patch","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-b896e7f7913e7a4d4378950f4d2144f5","url":"https://github.com/advisories/GHSA-5v5v-ww74-355v","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-5v5v-ww74-355v","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:59.927Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-b896e7f7913e7a4d4378950f4d2144f5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThis is a residual bypass of CVE-2026-47732 / GHSA-pr2w-4gpj-cpq4 left after the initial fix for unguarded `__toString()` calls.\n\nIn 3.26.0 the sandbox visitor was extended to wrap every child node that its parent will string-coerce at runtime with `CheckToStringNode`, gated by the new `CoercesChildrenToStringInterface`. `ArrayExpression` did not implement the interface for its mapping keys: when a dynamic key expression resolves to a `Stringable` object, `ArrayExpression::compile()` emits a raw `(string)` cast (via `StringCastUnary` for `ContextVariable` keys, and no cast at all for richer key expressions). PHP then invokes `__toString()` directly, without ever calling `SandboxExtension::ensureToStringAllowed()`.\n\nA sandboxed template author can therefore trigger `__toString()` on any object reachable in the render context by using it as a dynamic mapping key, for example:\n\n```twig\n{% set arr = {(obj): \"value\"} %}\n```\n\nDirect output of the same object is correctly blocked, which makes this a clear policy enforcement gap. The reliable demonstrated impact is unauthorised disclosure of data returned by `__toString()`.\n\n### Resolution\n\n`ArrayExpression` now declares i","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.27.0"]}],"null_published_at":"2026-10-31T22:13:10.061Z","source_updated_at":"2026-09-10T03:50:48.434Z","source_disclosed_at":"2026-06-30T18:42:49.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:41:59.927Z"}],"next_cursor":null,"snapshot_revision":"42594"}