{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.13.14"
              },
              {
                "introduced": "3.14.0a1"
              },
              {
                "fixed": "3.14.5rc1"
              },
              {
                "introduced": "3.15.0a1"
              },
              {
                "fixed": "3.15.0b1"
              }
            ],
            "source": [
              "AFFECTED_FIELD",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "introduced": "b092705907c758d4f9742028652c9802f9f03dd3"
            },
            {
              "introduced": "f31a89bb901067dd105b00cfa90523cf7ffdbbdd"
            },
            {
              "fixed": "fd17997c3866d61e0e7bd8201b1d8f35b40a40bd"
            },
            {
              "fixed": "a68a9190498a16ab1a5c9012ef5a70df81a5b328"
            },
            {
              "fixed": "f31a89bb901067dd105b00cfa90523cf7ffdbbdd"
            },
            {
              "fixed": "3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c"
            },
            {
              "fixed": "76b3923d688c0efc580658476c5f525ec8735104"
            },
            {
              "fixed": "f795e042043dfe26c42e1971d4502c1cdc4c65b8"
            }
          ],
          "repo": "https://github.com/python/cpython",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "PSF",
    "cwe_ids": [
      "CWE-150"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6019.json"
  },
  "details": "http.cookies.Morsel.js_output() returns an inline \u003cscript\u003e snippet and only escapes \" for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence \u003c/script\u003e inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value.",
  "id": "CVE-2026-6019",
  "modified": "2026-07-15T01:49:10.785769530Z",
  "published": "2026-04-22T19:28:08.720Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/6xxx/CVE-2026-6019.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6019"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/python/cpython/issues/90309"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8"
    },
    {
      "type": "FIX",
      "url": "https://github.com/python/cpython/pull/148848"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/python/cpython"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "BaseCookie.js_output() does not neutralize embedded characters"
}