{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.2.14"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "c95d780ab54f3a3f74a94ae1667bf12b3c549d5d"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.2.14",
                "range": [
                  {
                    "fixed": "5f922c733a185f61b33eda674320c8690bffa4e2"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5f922c733a185f61b33eda674320c8690bffa4e2"
            },
            {
              "fixed": "c95d780ab54f3a3f74a94ae1667bf12b3c549d5d"
            }
          ],
          "repo": "https://github.com/wintercms/winter",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-5cwr-5jxg-pcf6"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-79"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125338.json"
  },
  "details": "Winter CMS is a content management system built on the Laravel PHP framework. Prior to 1.2.14, BrandSetting::renderCss() and EditorSetting::renderCss() store raw LESS compiler output with Cache::forever() but apply strip_tags() only to the value returned on a cache miss. The first render after saving custom CSS appears sanitized while priming an unsafe cache entry, and later cache hits return unsanitized output into the backend style element, allowing a user with backend.manage_branding or backend.manage_editor to cause stored cross-site scripting when another backend page renders the styles. The styles also appear on unauthenticated backend sign-in, password restore, and password reset layouts. This issue is fixed in version 1.2.14.",
  "id": "CVE-2026-125338",
  "modified": "2026-11-15T02:30:59.954956212Z",
  "published": "2026-11-10T20:03:19.875Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/wintercms/winter/releases/tag/v1.2.14"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125338.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/wintercms/winter/security/advisories/GHSA-5cwr-5jxg-pcf6"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125338"
    },
    {
      "type": "FIX",
      "url": "https://github.com/wintercms/winter/commit/c95d780ab54f3a3f74a94ae1667bf12b3c549d5d"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Winter CMS: Stored XSS through cached Brand Settings and Editor Settings custom styles"
}