Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-6019— BaseCookie.js_output() does not neutralize embedded characters

Quick assessment

Affected
Python Software Foundation CPython
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

CPython是Python基金会的一个用C语言实现的Python解释器。 CPython存在安全漏洞,该漏洞源于http.cookies.Morsel.js_output返回内联script片段且仅转义双引号,未对生成的script元素内的HTML解析器敏感序列script进行中和。

AI Predicted 7.5 Difficulty: Easy EPSS 0.58% · P46

Affected Version Matrix 3

VendorProduct Version RangeStatus
Python Software Foundation CPython < 3.13.14 affected
3.14.0a1< 3.14.5rc1 affected
3.15.0a1< 3.15.0b1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-6019

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
BaseCookie.js_output() does not neutralize embedded characters
Source: CVE Program / CVE List V5
Vulnerability Description
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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
转义、元或控制序列转义处理不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
CPython 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
CPython是Python基金会的一个用C语言实现的Python解释器。 CPython存在安全漏洞,该漏洞源于http.cookies.Morsel.js_output返回内联script片段且仅转义双引号,未对生成的script元素内的HTML解析器敏感序列script进行中和。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Python Software Foundation CPython 0 ~ 3.13.14 -

II. Public POCs for CVE-2026-6019

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-6019

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-6019 (3)

Vendor Advisories for CVE-2026-6019 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-6019

No comments yet


Leave a comment