CVE-2026-45072: Symfony Vulnerable to stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering

low Affects symfony/symfony, symfony/twig-bridge, symfony/web-profiler-bundle. Feed 2026.10.29.4, updated 2026-10-29; published ; advisory modified .

Symfony Vulnerable to stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering

Package
symfony/symfony Composer
Affected versions
>=6.4.24 and <6.4.40 or >=7.2.9 and <7.4.12 or >=8.0.0 and <8.0.12 or >=7.2.9 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.12
Fixed in
6.4.40, 7.4.12, 8.0.12
Severity
low
Exploitation
not on CISA KEV · EPSS 0% (23.3th percentile)
Published
2026-05-27
Source
osv.dev

References

Symfony Vulnerable to stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering

Package
symfony/twig-bridge Composer
Affected versions
>=6.4.24 and <6.4.40
Fixed in
6.4.40
Severity
low
Exploitation
not on CISA KEV · EPSS 0% (23.3th percentile)
Published
2026-05-27
Source
osv.dev

References

Symfony Vulnerable to stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering

Package
symfony/web-profiler-bundle Composer
Affected versions
>=7.2.9 and <7.4.12 or >=8.0.0 and <8.0.12 or >=7.2.9 and <7.3.0 or >=7.3.0 and <7.4.0 or >=7.4.0 and <7.4.12
Fixed in
7.4.12, 8.0.12
Severity
low
Exploitation
not on CISA KEV · EPSS 0% (23.3th percentile)
Published
2026-05-27
Source
osv.dev

References

CWE-79
NVD recordsymfony/symfony advisoriessymfony/twig-bridge advisoriessymfony/web-profiler-bundle advisories

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories