CVE-2026-6019 BaseCookie.js_output() does not neutralize embedded characters
설명
http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context. It does not neutralize the HTML parser-sensitive sequence </script> inside the generated script element. Mitigation base64-encodes the cookie value to disallow escaping using cookie value.
영향 받는 제품 제품 1개
-
해결 버전 있음
Python Software Foundation
CPython
영향 받는 버전
- 3.13.14 미만
- 3.14.0a1 이상 3.14.5rc1 미만
- 3.15.0a1 이상 3.15.0b1 미만
해결 버전
- 3.13.14 이상
- 3.14.5rc1 이상
- 3.15.0b1 이상
참고 자료 6건
- github.com https://github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c (새 창)
- github.com https://github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104 (새 창)
- github.com https://github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8 (새 창)
- github.com https://github.com/python/cpython/issues/90309 (새 창)
- github.com https://github.com/python/cpython/pull/148848 (새 창)
- mail.python.org https://mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/ (새 창)