Skip to content
Heist/ feed
Back to feed
High

Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses

Type: advisorySources: OSV

Sanic is an opensource python web server/framework. Prior to version 24.12.1, and in version 25.12.0, the HTTP/1.1 response pipeline in sanic/response/types.py serializes response header names and values without rejecting carriage-return or line-feed characters. Applications that place attacker-controlled data in response.headers, file(..., filename=...), or cookie path and domain attributes can therefore emit injected headers and may split responses. Depending on application and proxy behavior, this can enable session fixation through injected cookies, cache poisoning, or security-header corruption. This issue is fixed in versions 24.12.1 and 25.12.1.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-85077
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:36 UTC · Revision 1

Source evidence

Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses

core-osv · Original source

Published 17 Sept 2026, 14:26 UTC

Sanic is an opensource python web server/framework. Prior to version 24.12.1, and in version 25.12.0, the HTTP/1.1 response pipeline in sanic/response/types.py serializes response header names and values without rejecting carriage-return or line-feed characters. Applications that place attacker-controlled data in response.headers, file(..., filename=...), or cookie path and domain attributes can therefore emit injected headers and may split responses. Depending on application and proxy behavior, this can enable session fixation through injected cookies, cache poisoning, or security-header corruption. This issue is fixed in versions 24.12.1 and 25.12.1.

osv:CVE-2026-85077
Complete source record
{
  "id": "1e5771efe5a153e939f2564f2defda9e9d58b644579ad2d9ec521c739a06c686",
  "url": "https://osv.dev/vulnerability/CVE-2026-85077",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Sanic: HTTP response header injection via missing CR/LF validation in Sanic HTTP/1.1 responses",
    "summary": "Sanic is an opensource python web server/framework. Prior to version 24.12.1, and in version 25.12.0, the HTTP/1.1 response pipeline in sanic/response/types.py serializes response header names and values without rejecting carriage-return or line-feed characters. Applications that place attacker-controlled data in response.headers, file(..., filename=...), or cookie path and domain attributes can therefore emit injected headers and may split responses. Depending on application and proxy behavior, this can enable session fixation through injected cookies, cache poisoning, or security-header corruption. This issue is fixed in versions 24.12.1 and 25.12.1.",
    "evidence": "osv:CVE-2026-85077",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-85077",
      "aliases": [
        "CVE-2026-85077",
        "GHSA-m64h-22vf-48wm"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/sanic-org/sanic",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "47349d689d65fa1907977ac100e867894aeafb22"
                },
                {
                  "introduced": "785d77f8fe208576a48d339bd81d866021154092"
                },
                {
                  "fixed": "ef9240ce844472745fa213de216a37e188431fa6"
                },
                {
                  "fixed": "9a95bb1c187558949606b915f5162c15f2db781b"
                },
                {
                  "fixed": "a332796506c7c588b6930b02a8886e43eb8ea8d6"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "24.12.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "25.12.0"
                      },
                      {
                        "fixed": "25.12.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "47349d689d65fa1907977ac100e867894aeafb22"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "9a95bb1c187558949606b915f5162c15f2db781b"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a332796506c7c588b6930b02a8886e43eb8ea8d6"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "47349d689d65fa1907977ac100e867894aeafb22"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v24.12.1"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ef9240ce844472745fa213de216a37e188431fa6"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v25.12.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v25.3.0",
            "v24.12.0",
            "v23.6.0",
            "v22.12.0",
            "v23.3.0",
            "v22.9.1",
            "v22.9.0",
            "v22.6.0",
            "v22.3.1",
            "v22.3.0",
            "v21.12.0",
            "v21.9.1",
            "v21.9.0",
            "v21.6.0",
            "v21.3.2",
            "v21.3.1",
            "v21.3.0",
            "v20.12.0",
            "v20.9.1",
            "v20.9.0",
            "v20.6.3",
            "v20.3.0",
            "v19.12.1",
            "v19.9.0",
            "v19.6.3",
            "v19.6.2",
            "v19.6.1",
            "v19.6.0",
            "19.03.1",
            "19.3",
            "18.12.0",
            "0.8.3",
            "0.8.2",
            "0.8.1",
            "0.8.0",
            "0.7.0",
            "0.6.0",
            "0.5.4",
            "0.5.3",
            "0.5.2",
            "0.5.1",
            "0.5.0",
            "0.4.1",
            "0.4.0",
            "0.3.1",
            "0.3.0",
            "0.2.0",
            "0.1.9",
            "0.1.8",
            "0.1.7",
            "0.1.6",
            "0.1.5",
            "0.1.4",
            "0.1.3",
            "0.1.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85077.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.335079919Z",
      "provider": "osv",
      "references": [
        "https://github.com/sanic-org/sanic/releases/tag/v24.12.1",
        "https://github.com/sanic-org/sanic/releases/tag/v25.12.1",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85077.json",
        "https://github.com/sanic-org/sanic/security/advisories/GHSA-m64h-22vf-48wm",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-85077",
        "https://github.com/sanic-org/sanic/commit/47349d689d65fa1907977ac100e867894aeafb22",
        "https://github.com/sanic-org/sanic/commit/9a95bb1c187558949606b915f5162c15f2db781b",
        "https://github.com/sanic-org/sanic/commit/a332796506c7c588b6930b02a8886e43eb8ea8d6",
        "https://github.com/sanic-org/sanic/pull/3164",
        "https://github.com/sanic-org/sanic/pull/3165"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-113"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85077.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-85077",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505754,
  "published_at": "2026-09-17T14:26:39.826+00:00"
}