Intel

AIKIDO-2026-10864

symfony/web-profiler-bundle is vulnerable to Cross-site Scripting (XSS)

Cross-site Scripting (XSS)CVE-2026-45072 Published May 21, 2026

39

Low Risk

This Affects:

PHPsymfony/web-profiler-bundle
7.2.9 - 7.4.11
Fixed in 7.4.12
8.0.0 - 8.0.11
Fixed in 8.0.12
Are you affected? Scan for Free

TL;DR

CodeExtension::fileExcerpt() escapes PHP files through syntax highlighting but renders non-PHP file lines without escaping. If attacker-controlled content is written to a file later viewed through a profiler excerpt, it can execute as HTML or JavaScript. Pre-fix development profiler views can expose stored XSS to developers. The fix escapes non-PHP file contents before rendering excerpts.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

symfony/web-profiler-bundle is vulnerable to Cross-site Scripting (XSS) in versions 7.2.9 - 7.4.11 and 8.0.0 - 8.0.11.

How to fix this

Upgrade the symfony/web-profiler-bundle and/or symfony/symfony library to the patch version.