{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "6.4.24"
              },
              {
                "fixed": "6.4.40"
              },
              {
                "introduced": "7.2.9"
              },
              {
                "fixed": "7.4.12"
              },
              {
                "introduced": "8.0.0"
              },
              {
                "fixed": "8.0.12"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "bd6ce061b70071afea0a4805903b6ed3f6f64e07"
            },
            {
              "fixed": "816860d96c4fb7ffd7708ae0531ea6e5a1190773"
            },
            {
              "introduced": "972dd874c2ce65e4c58dbf59054d2bf7ad70ec54"
            },
            {
              "fixed": "1fc7ca636cbd2cad29b42cc13c9fd0c681c6efee"
            },
            {
              "introduced": "bea6dc79db4d95c34b77ec27273d812aa64d65be"
            },
            {
              "fixed": "d776945b2dc41c0e609c56c1ef69863ab56856ed"
            }
          ],
          "repo": "https://github.com/symfony/security-http",
          "type": "GIT"
        },
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:sensiolabs:symfony:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "6.4.24"
              },
              {
                "fixed": "6.4.40"
              },
              {
                "introduced": "7.2.9"
              },
              {
                "fixed": "7.4.12"
              },
              {
                "introduced": "8.0.0"
              },
              {
                "fixed": "8.0.12"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "dd399b476c42d8437191e162de955a35a408d99f"
            },
            {
              "fixed": "95a951788e30c45356278f4e4472cbbf552d0eb9"
            },
            {
              "introduced": "7b46622b6666b0331960d974f2a2c5def7f233fd"
            },
            {
              "fixed": "275f5cbccbcc50205206f05e599c4f57009aadb8"
            },
            {
              "introduced": "2e913a829cfbbf9cb38b321bdff1806b44b192eb"
            },
            {
              "fixed": "06d3b2c9a8aeb5d8493738cc51e24f6a1215827c"
            },
            {
              "fixed": "863aa81c61166f1aa74b7732df316f76113acbdb"
            }
          ],
          "repo": "https://github.com/symfony/symfony",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-hmr5-2xcr-v8pp"
  ],
  "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"
  },
  "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 \u003ccode\u003e 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.",
  "id": "CVE-2026-45072",
  "modified": "2026-07-17T03:41:48.022882694Z",
  "published": "2026-07-14T18:11:07.748Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/symfony/symfony/releases/tag/v6.4.40"
    },
    {
      "type": "WEB",
      "url": "https://github.com/symfony/symfony/releases/tag/v7.4.12"
    },
    {
      "type": "WEB",
      "url": "https://github.com/symfony/symfony/releases/tag/v8.0.12"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45072.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/symfony/symfony/security/advisories/GHSA-hmr5-2xcr-v8pp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45072"
    },
    {
      "type": "FIX",
      "url": "https://github.com/symfony/symfony/commit/863aa81c61166f1aa74b7732df316f76113acbdb"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Symfony: Stored XSS in WebProfiler CodeExtension::fileExcerpt() — Unescaped Non-PHP File Rendering"
}