UBUNTU-CVE-2026-45072
A stored cross-site scripting (XSS) vulnerability exists in the Symfony PHP framework's development profiler file_excerpt Twig filter. Versions from 6.4.24 up to but not including 6.4.40, 7.4.12, and 8.0.12 improperly handle non-PHP files by interpolating lines directly into <code> elements without escaping, allowing an attacker to inject malicious scripts that execute when a developer views an attacker-controlled file in the profiler. This issue is fixed in Symfony versions 6.4.40, 7.4.12, and 8.0.12.
AI Analysis
Technical Summary
The vulnerability in Symfony affects the development profiler's file_excerpt Twig filter, which escapes PHP files using highlight_string() but fails to escape lines from non-PHP files, directly embedding them into <code> elements. This improper handling allows stored XSS attacks against developers who open attacker-crafted files such as var/log/dev.log in the profiler interface. The flaw is present in versions starting from 6.4.24 up to but excluding 6.4.40, 7.4.12, and 8.0.12. The issue has been addressed by fixing the escaping mechanism in the specified fixed versions.
Potential Impact
An attacker can inject malicious scripts into non-PHP files that are viewed by developers in the Symfony development profiler, leading to stored cross-site scripting attacks. This can result in execution of arbitrary scripts in the context of the developer's browser, potentially compromising developer sessions or exposing sensitive debugging information. The impact is limited to developers who open the attacker-controlled files in the profiler environment.
Mitigation Recommendations
A fix is available in Symfony versions 6.4.40, 7.4.12, and 8.0.12. Users should upgrade to these versions or later to remediate the vulnerability. No additional mitigations are specified by the vendor advisory.
UBUNTU-CVE-2026-45072
Description
A stored cross-site scripting (XSS) vulnerability exists in the Symfony PHP framework's development profiler file_excerpt Twig filter. Versions from 6.4.24 up to but not including 6.4.40, 7.4.12, and 8.0.12 improperly handle non-PHP files by interpolating lines directly into <code> elements without escaping, allowing an attacker to inject malicious scripts that execute when a developer views an attacker-controlled file in the profiler. This issue is fixed in Symfony versions 6.4.40, 7.4.12, and 8.0.12.
CVSS v4.0
Affected software
pkg:deb/ubuntu/[email protected]?arch=source&distro=xenialpkg:deb/ubuntu/[email protected]+dfsg-1ubuntu0.1+esm2?arch=source&distro=esm-apps/bionicpkg:deb/ubuntu/[email protected]+dfsg-1ubuntu1+esm2?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/[email protected]+dfsg-1ubuntu8+esm1?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/[email protected]+dfsg-3ubuntu3+esm1?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/[email protected]+dfsg-1?arch=source&distro=questingpkg:deb/ubuntu/[email protected]+dfsg-1ubuntu1?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Symfony affects the development profiler's file_excerpt Twig filter, which escapes PHP files using highlight_string() but fails to escape lines from non-PHP files, directly embedding them into <code> elements. This improper handling allows stored XSS attacks against developers who open attacker-crafted files such as var/log/dev.log in the profiler interface. The flaw is present in versions starting from 6.4.24 up to but excluding 6.4.40, 7.4.12, and 8.0.12. The issue has been addressed by fixing the escaping mechanism in the specified fixed versions.
Potential Impact
An attacker can inject malicious scripts into non-PHP files that are viewed by developers in the Symfony development profiler, leading to stored cross-site scripting attacks. This can result in execution of arbitrary scripts in the context of the developer's browser, potentially compromising developer sessions or exposing sensitive debugging information. The impact is limited to developers who open the attacker-controlled files in the profiler environment.
Mitigation Recommendations
A fix is available in Symfony versions 6.4.40, 7.4.12, and 8.0.12. Users should upgrade to these versions or later to remediate the vulnerability. No additional mitigations are specified by the vendor advisory.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-45072
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:Pro:18.04:LTS","Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 4.0
Threat ID: 6a58b4ac68715ace43da9376
Added to database: 07/16/2026, 10:38:36 UTC
Last enriched: 07/16/2026, 12:48:02 UTC
Last updated: 07/16/2026, 12:48:02 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.