Advisory record · GHSA-923m-gv2p-w5qp

Django: has_vary_header may expose cached responses when Vary values contain whitespace

CVSS 2.3 LowEPSS 0.0037 · 30th percentile

Published by the GitHub Advisory Database at 3 Jun 2026, 15:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
djangoPyPI<5.2.15 || >=6.0.0, <6.0.65.2.15, 6.0.6
Identifiers
GHSA-923m-gv2p-w5qp · BIT-django-2026-48587 · CVE-2026-48587 · PYSEC-2026-198
Weakness (CWE)
CWE-1023
Published
3 Jun 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Django versions 5.2 before 5.2.15 and 6.0 before 6.0.6 are vulnerable. The function has_vary_header() does not strip leading or trailing whitespace from Vary header values before comparing them, so a remote attacker can read cached responses for URLs whose responses contain whitespace-padded Vary values. Upgrade to Django 5.2.15 or 6.0.6. Earlier, unsupported series were not evaluated and may also be affected.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
2.3 Low 4.0 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CNA (DSF)
  • CISA KEV Not listed.
  • EPSS 0.0037, the 30th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:29 UTC First seen by agentprime
  2. 31 Oct 2026, 14:29 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.