Bug 2500742 (CVE-2026-47730)

Summary: CVE-2026-47730 twig/twig: Twig: Cross-site Scripting (XSS) vulnerability in HTML profiler dump
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in Twig, a template language for PHP. The HtmlDumper component, responsible for rendering profiler information, does not properly sanitize user-controlled template or profile names before including them in the HTML output. This vulnerability allows an attacker to inject malicious HTML, potentially leading to client-side script execution when a browser displays the profiler dump.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2500874, 2500877    
Bug Blocks:    

Description OSIDB Bzimport 2026-07-14 22:03:56 UTC
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.