# CVE-2020-5255: Prevent cache poisoning via a Response Content-Type header

- Severity: Low 2.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.30%, higher than 71% of CVEs (2026-12-01)
- Published: 2020-03-30T19:30:15.000Z
- Modified: 2026-09-10T03:48:29.528Z
- Also known as: GHSA-mcx4-f5f5-4859, BIT-SYMFONY-2020-5255
- Weaknesses: CWE-20, CWE-435
- Assigned by: GitHub_M

## Description

In Symfony before versions 4.4.7 and 5.0.7, when a `Response` does not contain a `Content-Type` header, affected versions of Symfony can fallback to the format defined in the `Accept` header of the request, leading to a possible mismatch between the response&#39;s content and `Content-Type` header. When the response is cached, this can prevent the use of the website by other users. This has been patched in versions 4.4.7 and 5.0.7.

(As written by CVE List.)

## Affected

- symfony symfony: >= 4.4.0 and < 4.4.7; >= 5.0.0 and < 5.0.7
- symfony/http-foundation (Packagist): from 4.4.0 before 4.4.7; from 5.0.0 before 5.0.7
- symfony/symfony (Packagist): from 4.4.0 before 4.4.7; from 5.0.0 before 5.0.7
- sensiolabs symfony: from 4.4.0 before 4.4.7; from 5.0.0 before 5.0.7
- symfony (Bitnami): from 4.4.0 before 4.4.7; from 5.0.0 before 5.0.7

## Every score

- GitHub_M: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 2.6 Low `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 4.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859> (third-party-advisory, web)
- <https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6> (patch, third-party-advisory, web)
- <https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header> (third-party-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ/> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5255> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2020-5255.yaml> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5255.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ> (web)
- <https://symfony.com/cve-2020-5255> (web)

## Sources

- CVE List: [CVE-2020-5255](https://www.cve.org/CVERecord?id=CVE-2020-5255), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-mcx4-f5f5-4859](https://github.com/advisories/GHSA-mcx4-f5f5-4859), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2020-5255](https://nvd.nist.gov/vuln/detail/CVE-2020-5255), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-SYMFONY-2020-5255](https://osv.dev/vulnerability/BIT-SYMFONY-2020-5255), Apache-2.0, modified 2024-03-06

---

Page: https://cve.day/CVE-2020-5255 · Whole record: https://cve.day/CVE-2020-5255.json · Rebuilt by cve.day 2026-11-25T22:57:51.709Z
