CVE-2026-47730
Twig: XSS in profiler HtmlDumper via unescaped template and profile names
Twig is a template language for PHP. From 3.0.0 until 3.26.0, Twig\Profiler\Dumper\HtmlDumper writes Profile::getTemplate() and Profile::getName() into HTML output without escaping, allowing attacker-controlled template or profile names to inject arbitrary HTML when a browser renders the profiler dump. This issue is fixed in version 3.26.0.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.295% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 4.0 · 5.1 · published by GitHub_MCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Assessment source · checked 2026-11-19T12:01:58.064Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:01:58.064Z | CVE Program |
| epss | verified | 2026-11-19T16:04:51.377Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:00.377Z | OSV |
| affected | verified | 2026-11-19T12:01:58.064Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:01:58.064Z | CVE Program |
Affected versions and configuration
twigphp Twig; default status: unknown: >= 3.0.0, < 3.26.0 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
OSV · osv · full conditions
{
"id": "GHSA-2g2g-8p8h-fgwm",
"aliases": [
"CVE-2026-47730"
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.26.0"
}
]
}
],
"package": {
"name": "twig/twig",
"purl": "pkg:composer/twig/twig",
"ecosystem": "Packagist"
},
"versions": [
"v3.0.0",
"v3.0.1",
"v3.0.2",
"v3.0.3",
"v3.0.4",
"v3.0.5",
"v3.1.0",
"v3.1.1",
"v3.10.0",
"v3.10.1",
"v3.10.2",
"v3.10.3",
"v3.11.0",
"v3.11.1",
"v3.11.2",
"v3.11.3",
"v3.12.0",
"v3.13.0",
"v3.14.0",
"v3.14.1",
"v3.14.2",
"v3.15.0",
"v3.16.0",
"v3.17.0",
"v3.17.1",
"v3.18.0",
"v3.19.0",
"v3.2.1",
"v3.20.0",
"v3.21.0",
"v3.21.1",
"v3.22.0",
"v3.22.1",
"v3.22.2",
"v3.23.0",
"v3.24.0",
"v3.25.0",
"v3.3.0",
"v3.3.1",
"v3.3.10",
"v3.3.2",
"v3.3.3",
"v3.3.4",
"v3.3.5",
"v3.3.6",
"v3.3.7",
"v3.3.8",
"v3.3.9",
"v3.4.0",
"v3.4.1",
"v3.4.2",
"v3.4.3",
"v3.5.0",
"v3.5.1",
"v3.6.0",
"v3.6.1",
"v3.7.0",
"v3.7.1",
"v3.8.0",
"v3.9.0",
"v3.9.1",
"v3.9.2",
"v3.9.3"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-2g2g-8p8h-fgwm/GHSA-2g2g-8p8h-fgwm.json"
}
}
],
"severity": [],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/twigphp/Twig/security/advisories/GHSA-2g2g-8p8h-fgwm",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2026-47730.yaml",
"type": "WEB"
},
{
"url": "https://github.com/twigphp/Twig",
"type": "PACKAGE"
},
{
"url": "https://github.com/twigphp/Twig/releases/tag/v3.26.0",
"type": "WEB"
},
{
"url": "https://symfony.com/cve-2026-47730",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-06-05T21:46:26Z"
}
}Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "twigphp",
"product": "Twig",
"versions": [
{
"status": "affected",
"version": ">= 3.0.0, < 3.26.0"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-47730",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-21T14:44:57.049205Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-21T14:45:11.407Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | Packagist / package | twig/twig | Not a distribution channel | 3.26.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:01:58.064ZArchived source JSON
Source publication: 2026-07-14T21:21:10.185Z
Source modification: 2026-07-21T14:45:11.407ZDocument fingerprint
24d27717a43ec580123c93dfa86744b5b3e8a5e660138ba85785a13187a08694 - OSVConsulted: 2026-11-19T12:52:00.377ZArchived source JSON
Source publication: 2026-06-05T21:46:26.000Z
Source modification: 2026-09-10T03:51:07.469ZDocument fingerprint
9d87e41124382950f450b202fcbb05735441198a5cd145f7a5b8d54e448b5017 - CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:51.377ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
314533c6cad7257b55626d2ae0cd98a6c49376abfa725a18eb65ebef4059364a
Official status history
- UNKNOWN → PUBLISHED · · evidence