← Back to CVE Explorer

CVE-2026-54625

Full vulnerability record from the local CVENow database.

Description

django CMS is a content management system powered by Django. Prior to 5.0.8 and in 5.1.0a1, the django CMS page cache in cms/cache/page.py ignores request headers declared by plugins through get_vary_cache_on(). The _page_cache_key function includes the cache prefix, site, language, path, and timezone but not the declared header values. Although set_page_cache adds those names to the response Vary header, get_page_cache retrieves the first stored variant under the same header-agnostic key. When CMS_PAGE_CACHE is enabled and a plugin varies content on a header such as Country-Code, one visitor can receive another visitor’s request-specific content, and an unauthenticated attacker can prime the cache with attacker-chosen content. This issue is fixed in versions 5.0.8 and 5.1.0.

Severity
MEDIUM
CVSS score
4.8 (v3.1)
Vulnerability status
Deferred
Source identifier
Published
2026-08-20 18:16:28.170000
Last modified
2026-10-26 10:10:00.140000
View original CVE JSON
{
  "id": "CVE-2026-54625",
  "sourceIdentifier": "[email protected]",
  "published": "2026-08-20T18:16:28.170",
  "lastModified": "2026-10-26T10:10:00.140",
  "vulnStatus": "Deferred",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "django CMS is a content management system powered by Django. Prior to 5.0.8 and in 5.1.0a1, the django CMS page cache in cms/cache/page.py ignores request headers declared by plugins through get_vary_cache_on(). The _page_cache_key function includes the cache prefix, site, language, path, and timezone but not the declared header values. Although set_page_cache adds those names to the response Vary header, get_page_cache retrieves the first stored variant under the same header-agnostic key. When CMS_PAGE_CACHE is enabled and a plugin varies content on a header such as Country-Code, one visitor can receive another visitor’s request-specific content, and an unauthenticated attacker can prime the cache with attacker-chosen content. This issue is fixed in versions 5.0.8 and 5.1.0."
    },
    {
      "lang": "es",
      "value": "django CMS es un sistema de gestión de contenido impulsado por Django. Antes de la versión 5.0.8 y en la 5.1.0a1, la caché de página de django CMS en cms/cache/page.py ignora los encabezados de solicitud declarados por los plugins a través de get_vary_cache_on(). La función _page_cache_key incluye el prefijo de caché, el sitio, el idioma, la ruta y la zona horaria, pero no los valores de encabezado declarados. Aunque set_page_cache añade esos nombres al encabezado Vary de la respuesta, get_page_cache recupera la primera variante almacenada bajo la misma clave agnóstica de encabezado. Cuando CMS_PAGE_CACHE está habilitado y un plugin varía el contenido en un encabezado como Country-Code, un visitante puede recibir contenido específico de la solicitud de otro visitante, y un atacante no autenticado puede cebar la caché con contenido elegido por el atacante. Este problema se soluciona en las versiones 5.0.8 y 5.1.0."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "django-cms",
          "product": "django-cms",
          "versions": [
            {
              "version": "< 5.0.8",
              "status": "affected"
            },
            {
              "version": ">= 5.1.0a1, < 5.1.0",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "[email protected]",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N",
          "baseScore": 4.8,
          "baseSeverity": "MEDIUM",
          "attackVector": "NETWORK",
          "attackComplexity": "HIGH",
          "privilegesRequired": "NONE",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "LOW",
          "integrityImpact": "LOW",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.2,
        "impactScore": 2.5
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-08-20T19:45:03.782972Z",
          "id": "CVE-2026-54625",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-349"
        },
        {
          "lang": "en",
          "value": "CWE-524"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/django-cms/django-cms/commit/8758714b865ffa79c6bcd0e5c503958ea48885aa",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/commit/d5dc1efa18d157445491c4b12c2dd1efd56f439f",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/pull/8646",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/pull/8647",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/releases/tag/5.0.8",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/releases/tag/5.1.0",
      "source": "[email protected]"
    },
    {
      "url": "https://github.com/django-cms/django-cms/security/advisories/GHSA-fwjf-m4qw-9f2x",
      "source": "[email protected]"
    }
  ]
}