Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-47730— Twig: XSS in profiler HtmlDumper via unescaped template and profile names

AI Predicted 5.4 Difficulty: Moderate EPSS 0.04% · P11
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-47730

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Twig: XSS in profiler HtmlDumper via unescaped template and profile names
Source: NVD (National Vulnerability Database)
Vulnerability Description
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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
twigphpTwig >= 3.0.0, < 3.26.0 -

II. Public POCs for CVE-2026-47730

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-47730

登录查看更多情报信息。

Patches & Fixes for CVE-2026-47730 (1)

Vendor Advisories for CVE-2026-47730 (1)

Vendor Pages for CVE-2026-47730 (1)

Same Patch Batch · twigphp · 2026-07-14 · 17 CVEs total

CVE-2026-47732Twig Sandbox: multiple `__toString()` policy bypasses via unguarded string coercion points
CVE-2026-48806Twig: Sandbox `__toString()` policy bypass via dynamic mapping keys
CVE-2026-48805Twig: Sandbox state regression in deprecated internal wrappers in `src/Resources/core.php`
CVE-2026-48808Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterfa
CVE-2026-48807Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filte
CVE-2026-49981Twig: Sandbox filter, tag and function allow-list bypass when sandbox state changes betwee
CVE-2026-46635Twig: Sandbox property allowlist bypass via the `column` filter (array_column on objects)
CVE-2026-46638Twig: `{% sandbox %}{% include %}` skips checkSecurity() on cached templates (incomplete f
CVE-2026-46628Twig: The `spaceless` filter implicitly marks its output as safe
CVE-2026-46640Twig: Arbitrary PHP code execution via `_self.(<string>)` macro-reference compilation
CVE-2026-46637Twig: HTML-output filters in twig/* extras incorrectly declared `is_safe => ['all']`
CVE-2026-46639Twig: Sandbox property and method bypass via object-destructuring assignment
CVE-2026-46627Twig: Sandbox resource exhaustion via unbounded `for` / `range()`
CVE-2026-46634Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized templ
CVE-2026-46633Twig: PHP code injection via `{% use %}` template name
CVE-2026-46629Twig: Unbounded formatter memoisation in twig/intl-extra keyed on template-controlled argu

IV. Related Vulnerabilities

V. Comments for CVE-2026-47730

No comments yet


Leave a comment