{"items":[{"id":"NVI-00007967","kind":"vulnerability","title":"Twig: The `spaceless` filter implicitly marks its output as safe","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-4j38-f5cw-54h7","CVE-2026-46628"],"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.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"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-70dd7dd52a6b21cade20b8206299aa1c"],"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":"5.4 MEDIUM (3.1)","meaning":"nvd@nist.gov severity; no combined Null risk score.","source_id":"sr-7fc396b9185dfc4d2033279cb8b08cb8"},{"kind":"CVSS","as_of":"2026-10-24T22:10:00.210Z","value":"5.1 MEDIUM (4.0)","meaning":"security-advisories@github.com severity; no combined Null risk score.","source_id":"sr-7fc396b9185dfc4d2033279cb8b08cb8"},{"kind":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.295%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.22191. Missing scores are unknown.","source_id":"sr-70dd7dd52a6b21cade20b8206299aa1c"}],"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-f041d0fa557e46dd3cfc56b748e7e176","url":"https://github.com/advisories/GHSA-4j38-f5cw-54h7","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-4j38-f5cw-54h7","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.669Z"},{"id":"sr-7fc396b9185dfc4d2033279cb8b08cb8","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46628","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-46628","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-03T22:35:28.075Z"},{"id":"sr-70dd7dd52a6b21cade20b8206299aa1c","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-46628","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `spaceless` filter is registered with `is_safe => ['html']`, which means Twig's autoescaper does not escape its output in an HTML context. As a result, applying `spaceless` to attacker-controlled input that contains markup emits the markup unescaped even when the developer never wrote `|raw` and autoescape is enabled.\n\nExample:\n\n```twig\n{% set payload = 'alert()' %}\n{{ payload }}          {# escaped #}\n{{ payload|spaceless }} {# not escaped #}\n```\n\nThe filter is deprecated but still functional. With the deprecation, some downstream projects (e.g. Drupal modules) have duplicated the filter and inherited the same `is_safe` flag.\n\n### Resolution\n\nThe `spaceless` filter no longer marks its output as safe. Documentation has been updated to warn that `spaceless` should not be applied to unsanitised user input.\n\n### Credits\n\nTwig would like to thank Pierre Rudloff for reporting the issue.","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.26.0"]}],"null_published_at":"2026-11-08T15:11:49.379Z","source_updated_at":"2026-09-10T03:50:45.504Z","source_disclosed_at":"2026-05-21T21:21:35.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:49.669Z"},{"id":"NVI-00007967","kind":"vulnerability","title":"Twig: The `spaceless` filter implicitly marks its output as safe","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-4j38-f5cw-54h7","CVE-2026-46628"],"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.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"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-70dd7dd52a6b21cade20b8206299aa1c"],"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":"EPSS","as_of":"2026-10-31T12:00:27.000Z","value":"0.295%","meaning":"FIRST EPSS model v2026.06.15; exploitation probability over 30 days, percentile 0.22191. Missing scores are unknown.","source_id":"sr-70dd7dd52a6b21cade20b8206299aa1c"}],"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-f041d0fa557e46dd3cfc56b748e7e176","url":"https://github.com/advisories/GHSA-4j38-f5cw-54h7","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-4j38-f5cw-54h7","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.669Z"},{"id":"sr-70dd7dd52a6b21cade20b8206299aa1c","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-46628","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `spaceless` filter is registered with `is_safe => ['html']`, which means Twig's autoescaper does not escape its output in an HTML context. As a result, applying `spaceless` to attacker-controlled input that contains markup emits the markup unescaped even when the developer never wrote `|raw` and autoescape is enabled.\n\nExample:\n\n```twig\n{% set payload = 'alert()' %}\n{{ payload }}          {# escaped #}\n{{ payload|spaceless }} {# not escaped #}\n```\n\nThe filter is deprecated but still functional. With the deprecation, some downstream projects (e.g. Drupal modules) have duplicated the filter and inherited the same `is_safe` flag.\n\n### Resolution\n\nThe `spaceless` filter no longer marks its output as safe. Documentation has been updated to warn that `spaceless` should not be applied to unsanitised user input.\n\n### Credits\n\nTwig would like to thank Pierre Rudloff for reporting the issue.","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.26.0"]}],"null_published_at":"2026-11-01T19:14:01.588Z","source_updated_at":"2026-09-10T03:50:45.504Z","source_disclosed_at":"2026-05-21T21:21:35.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:49.669Z"},{"id":"NVI-00007967","kind":"vulnerability","title":"Twig: The `spaceless` filter implicitly marks its output as safe","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-4j38-f5cw-54h7","CVE-2026-46628"],"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.26.0 for twig/twig. Confirm the publisher’s latest guidance.","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"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-f041d0fa557e46dd3cfc56b748e7e176","url":"https://github.com/advisories/GHSA-4j38-f5cw-54h7","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-4j38-f5cw-54h7","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:49.669Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-f041d0fa557e46dd3cfc56b748e7e176"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\nThe `spaceless` filter is registered with `is_safe => ['html']`, which means Twig's autoescaper does not escape its output in an HTML context. As a result, applying `spaceless` to attacker-controlled input that contains markup emits the markup unescaped even when the developer never wrote `|raw` and autoescape is enabled.\n\nExample:\n\n```twig\n{% set payload = 'alert()' %}\n{{ payload }}          {# escaped #}\n{{ payload|spaceless }} {# not escaped #}\n```\n\nThe filter is deprecated but still functional. With the deprecation, some downstream projects (e.g. Drupal modules) have duplicated the filter and inherited the same `is_safe` flag.\n\n### Resolution\n\nThe `spaceless` filter no longer marks its output as safe. Documentation has been updated to warn that `spaceless` should not be applied to unsanitised user input.\n\n### Credits\n\nTwig would like to thank Pierre Rudloff for reporting the issue.","public_affected_ranges":["ECOSYSTEM: introduced 0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:13:18.642Z","source_updated_at":"2026-09-10T03:50:45.504Z","source_disclosed_at":"2026-05-21T21:21:35.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:49.669Z"}],"next_cursor":null,"snapshot_revision":"42594"}