CVE-2026-45072

Source
https://cve.org/CVERecord?id=CVE-2026-45072
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45072.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45072
Aliases
Downstream
Published
2026-07-14T18:11:07Z
Modified
2026-10-22T02:48:53Z
Severity
  • 2.0 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering
Details

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. From 6.4.24 until 6.4.40, 7.4.12, and 8.0.12, the development profiler file_excerpt Twig filter escapes PHP files through highlight_string() but interpolates lines from non-PHP files directly into elements, allowing stored XSS against a developer who opens an attacker-written file such as var/log/dev.log in the profiler. This issue is fixed in versions 6.4.40, 7.4.12, and 8.0.12.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-79"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45072.json"
}
References

Affected packages

Git / github.com/symfony/symfony

Affected ranges

Type
GIT
Repo
https://github.com/symfony/symfony
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "cpe":  "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "6.4.24"
                },
                {
                    "fixed":  "6.4.40"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "cpe":  "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "7.2.9"
                },
                {
                    "fixed":  "7.4.12"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "cpe":  "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
            "range":  [
                {
                    "introduced":  "8.0.0"
                },
                {
                    "fixed":  "8.0.12"
                }
            ],
            "source":  "CPE_RANGE"
        },
        {
            "range":  [
                {
                    "fixed":  "863aa81c61166f1aa74b7732df316f76113acbdb"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "v6.4.40",
            "range":  [
                {
                    "fixed":  "95a951788e30c45356278f4e4472cbbf552d0eb9"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "v7.4.12",
            "range":  [
                {
                    "fixed":  "275f5cbccbcc50205206f05e599c4f57009aadb8"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "v8.0.12",
            "range":  [
                {
                    "fixed":  "06d3b2c9a8aeb5d8493738cc51e24f6a1215827c"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

v6.*
v6.4.24
v6.4.25
v6.4.26
v6.4.27
v6.4.28
v6.4.29
v6.4.30
v6.4.31
v6.4.32
v6.4.33
v6.4.34
v6.4.35
v6.4.36
v6.4.37
v6.4.38
v6.4.39
v8.*
v8.0.0
v8.0.1
v8.0.10
v8.0.11
v8.0.2
v8.0.3
v8.0.4
v8.0.5
v8.0.6
v8.0.7
v8.0.8
v8.0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45072.json"