{"items":[{"id":"NVI-00006928","kind":"vulnerability","title":"Twig: XSS in profiler HtmlDumper via unescaped template and profile names","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-2g2g-8p8h-fgwm","CVE-2026-47730"],"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-c78e7353480d6be28603e6b0fecc56d5"],"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-6c79f2f43857a9cdb0a2b6cde061f485"],"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-aa22b7573788b6b9191271a589407450"},{"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-aa22b7573788b6b9191271a589407450"},{"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-6c79f2f43857a9cdb0a2b6cde061f485"}],"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-c78e7353480d6be28603e6b0fecc56d5","url":"https://github.com/advisories/GHSA-2g2g-8p8h-fgwm","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2g2g-8p8h-fgwm","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.016Z"},{"id":"sr-aa22b7573788b6b9191271a589407450","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47730","basis":"official_catalog","notes":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","title":"CVE-2026-47730","publisher":"NIST National Vulnerability Database","observed_at":"2026-11-01T07:24:22.913Z"},{"id":"sr-6c79f2f43857a9cdb0a2b6cde061f485","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-47730","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-c78e7353480d6be28603e6b0fecc56d5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\n`Twig\\Profiler\\Dumper\\HtmlDumper` writes `Profile::getTemplate()` and `Profile::getName()` straight into its HTML output without escaping:\n\n```php\nprotected function formatTemplate(Profile $profile, $prefix): string\n{\n    return \\sprintf('%s└ %s', $prefix, self::$colors['template'], $profile->getTemplate());\n}\n```\n\nThe template name comes from the loader (the array key for `ArrayLoader`, a row id for a database-backed loader, etc.). When that name is attacker-controlled, the profiler dump emits arbitrary HTML, and any browser that renders it executes the injected markup. This is an output-encoding bug in profiler/debug tooling, not a sandbox escape.\n\n### Resolution\n\n`HtmlDumper` now runs both `Profile::getTemplate()` and `Profile::getName()` through `htmlspecialchars()` before inserting them into the HTML output.\n\n### Credits\n\nTwig would like to thank El Kharoubi Iosif for reporting the issue and Nicolas Grekas for fixing it.","public_affected_ranges":["ECOSYSTEM: introduced 3.0.0; fixed 3.26.0"]}],"null_published_at":"2026-11-06T15:18:17.671Z","source_updated_at":"2026-09-10T03:51:07.469Z","source_disclosed_at":"2026-06-05T21:46:26.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:40.016Z"},{"id":"NVI-00006928","kind":"vulnerability","title":"Twig: XSS in profiler HtmlDumper via unescaped template and profile names","revision":2,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2g2g-8p8h-fgwm","CVE-2026-47730"],"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-c78e7353480d6be28603e6b0fecc56d5"],"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-6c79f2f43857a9cdb0a2b6cde061f485"],"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-6c79f2f43857a9cdb0a2b6cde061f485"}],"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-c78e7353480d6be28603e6b0fecc56d5","url":"https://github.com/advisories/GHSA-2g2g-8p8h-fgwm","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2g2g-8p8h-fgwm","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.016Z"},{"id":"sr-6c79f2f43857a9cdb0a2b6cde061f485","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-47730","publisher":"FIRST EPSS","observed_at":"2026-10-31T22:06:15.379Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-c78e7353480d6be28603e6b0fecc56d5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\n`Twig\\Profiler\\Dumper\\HtmlDumper` writes `Profile::getTemplate()` and `Profile::getName()` straight into its HTML output without escaping:\n\n```php\nprotected function formatTemplate(Profile $profile, $prefix): string\n{\n    return \\sprintf('%s└ %s', $prefix, self::$colors['template'], $profile->getTemplate());\n}\n```\n\nThe template name comes from the loader (the array key for `ArrayLoader`, a row id for a database-backed loader, etc.). When that name is attacker-controlled, the profiler dump emits arbitrary HTML, and any browser that renders it executes the injected markup. This is an output-encoding bug in profiler/debug tooling, not a sandbox escape.\n\n### Resolution\n\n`HtmlDumper` now runs both `Profile::getTemplate()` and `Profile::getName()` through `htmlspecialchars()` before inserting them into the HTML output.\n\n### Credits\n\nTwig would like to thank El Kharoubi Iosif for reporting the issue and Nicolas Grekas for fixing it.","public_affected_ranges":["ECOSYSTEM: introduced 3.0.0; fixed 3.26.0"]}],"null_published_at":"2026-11-01T19:14:01.573Z","source_updated_at":"2026-09-10T03:51:07.469Z","source_disclosed_at":"2026-06-05T21:46:26.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:40.016Z"},{"id":"NVI-00006928","kind":"vulnerability","title":"Twig: XSS in profiler HtmlDumper via unescaped template and profile names","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-2g2g-8p8h-fgwm","CVE-2026-47730"],"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-c78e7353480d6be28603e6b0fecc56d5"],"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-c78e7353480d6be28603e6b0fecc56d5","url":"https://github.com/advisories/GHSA-2g2g-8p8h-fgwm","basis":"vendor_advisory","notes":"GitHub-origin advisory, CC-BY-4.0; OSV is an aggregate copy, not independent corroboration.","title":"GHSA-2g2g-8p8h-fgwm","publisher":"GitHub Advisory Database via OSV","observed_at":"2026-10-31T21:41:40.016Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-c78e7353480d6be28603e6b0fecc56d5"],"technology":"twig/twig","known_exclusions":[],"conditions_summary":"### Description\n\n`Twig\\Profiler\\Dumper\\HtmlDumper` writes `Profile::getTemplate()` and `Profile::getName()` straight into its HTML output without escaping:\n\n```php\nprotected function formatTemplate(Profile $profile, $prefix): string\n{\n    return \\sprintf('%s└ %s', $prefix, self::$colors['template'], $profile->getTemplate());\n}\n```\n\nThe template name comes from the loader (the array key for `ArrayLoader`, a row id for a database-backed loader, etc.). When that name is attacker-controlled, the profiler dump emits arbitrary HTML, and any browser that renders it executes the injected markup. This is an output-encoding bug in profiler/debug tooling, not a sandbox escape.\n\n### Resolution\n\n`HtmlDumper` now runs both `Profile::getTemplate()` and `Profile::getName()` through `htmlspecialchars()` before inserting them into the HTML output.\n\n### Credits\n\nTwig would like to thank El Kharoubi Iosif for reporting the issue and Nicolas Grekas for fixing it.","public_affected_ranges":["ECOSYSTEM: introduced 3.0.0; fixed 3.26.0"]}],"null_published_at":"2026-10-31T22:13:14.304Z","source_updated_at":"2026-09-10T03:51:07.469Z","source_disclosed_at":"2026-06-05T21:46:26.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:40.016Z"}],"next_cursor":null,"snapshot_revision":"42594"}