--- title: "Prevent cache poisoning via a Response Content-Type header in Symfony" system_id: "symfony" category: "frameworks" advisory_mode: "core" published_date: "2020-03-30T20:09:16Z" updated_date: "2026-03-13T22:01:08.748385Z" severity: "low" exploit_status: "unknown" source_confidence: "official" verification_status: "triage-manual" verification_mode: "synthetic" artifact_mode: "synthetic" last_run_id: "" target_types: - "lab-local" - "lab-public" - "authorized-third-party" allow_public_validation: "yes, with ownership or explicit authorization" authorization_prerequisite: "asset ownership proof or explicit written authorization" minimal_validation: "read-only probe, controlled payload, reversible test" aliases: - "BIT-symfony-2020-5255" - "CVE-2020-5255" - "GHSA-mcx4-f5f5-4859" affected_versions: - "v4.4.0" - "v4.4.1" - "v4.4.2" - "v4.4.3" - "v4.4.4" - "v4.4.5" - "v4.4.6" - "v5.0.0" - "v5.0.1" - "v5.0.2" - "v5.0.3" - "v5.0.4" - "v5.0.5" - "v5.0.6" - "introduced=4.4.0, fixed<4.4.7" - "introduced=5.0.0, fixed<5.0.7" fixed_versions: - "4.4.7" - "5.0.7" secure_code_topics: - "xss-output-encoding" - "authz-server-side-recheck" - "path-traversal-guard" primary_source: "https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859" --- # Prevent cache poisoning via a Response Content-Type header in Symfony ## 本地实证状态 - 实证状态: `triage-manual` - 实证方式: `synthetic` - Artifact 模式: `synthetic` - 最近运行: `-` - 浏览器证据: `missing` - Run Bundle: `-` ## 事件层 - Canonical ID: `symfony--CVE-2020-5255` - 系统: `symfony` - 严重度: `low` - 来源置信度: `official` - 官方主源: https://github.com/symfony/symfony/security/advisories/GHSA-mcx4-f5f5-4859 - 影响版本: `v4.4.0, v4.4.1, v4.4.2, v4.4.3, v4.4.4, v4.4.5, v4.4.6, v5.0.0, v5.0.1, v5.0.2` - 修复版本: `4.4.7, 5.0.7` ## 其他来源 - https://nvd.nist.gov/vuln/detail/CVE-2020-5255 - https://github.com/symfony/symfony/commit/dca343442e6a954f96a2609e7b4e9c21ed6d74e6 - https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2020-5255.yaml - https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2020-5255.yaml - https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/C36JLPHUPKDFAX6D5WYFC4ALO2K7RDUQ - https://symfony.com/blog/cve-2020-5255-prevent-cache-poisoning-via-a-response-content-type-header - https://symfony.com/cve-2020-5255 ## 实验层 - 仅用于自有资产、测试环境或已明确授权目标。 - 允许公网可达目标,但必须满足资产归属或明确授权前提。 - 最小化验证方式: 最小化验证、只读探测、可审计回显、受控注入。 - 若该案例涉及插件、模块或扩展,应同时检查供应链与升级策略。 - 禁止场景: 无归属证明或无明确授权的公网目标;知名公共网站或与测试无关的第三方资产;会造成持久破坏、数据越权下载或不可回滚影响的动作 ## 修复示例 - [javascript-typescript:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/javascript-typescript/xss-output-encoding.md) - [nodejs:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/nodejs/xss-output-encoding.md) - [java:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/java/xss-output-encoding.md) - [php:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/php/xss-output-encoding.md) - [python:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/python/xss-output-encoding.md) - [ruby:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/ruby/xss-output-encoding.md) - [csharp:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/csharp/xss-output-encoding.md) - [go:xss-output-encoding](/Users/x/websafe/05-defense/secure-code/go/xss-output-encoding.md) - [javascript-typescript:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/javascript-typescript/authz-server-side-recheck.md) - [nodejs:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/nodejs/authz-server-side-recheck.md) - [java:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/java/authz-server-side-recheck.md) - [php:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/php/authz-server-side-recheck.md) - [python:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/python/authz-server-side-recheck.md) - [ruby:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/ruby/authz-server-side-recheck.md) - [csharp:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/csharp/authz-server-side-recheck.md) - [go:authz-server-side-recheck](/Users/x/websafe/05-defense/secure-code/go/authz-server-side-recheck.md) - [javascript-typescript:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/javascript-typescript/path-traversal-guard.md) - [nodejs:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/nodejs/path-traversal-guard.md) - [java:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/java/path-traversal-guard.md) - [php:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/php/path-traversal-guard.md) - [python:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/python/path-traversal-guard.md) - [ruby:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/ruby/path-traversal-guard.md) - [csharp:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/csharp/path-traversal-guard.md) - [go:path-traversal-guard](/Users/x/websafe/05-defense/secure-code/go/path-traversal-guard.md)