Kernel Kit / Infix / v26.10.0latest
CVE-2026-6019
2.1lowpython33.12.14 · 3.12.12 · 3.12.9in 4 of 4 releases
Reach python3 · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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.
Published 2026-04-22NVD
CVSS 4.0Network · high privileges · no user interaction
How it is reached
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- Present
- Privileges required
- High
- User interaction
- None
What it costs
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
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
References 7
- github.com/python/cpython/commit/3c59b8b53fc75c7f9578d16fb8201ceb43e8f76c
- github.com/python/cpython/commit/76b3923d688c0efc580658476c5f525ec8735104
- github.com/python/cpython/commit/f795e042043dfe26c42e1971d4502c1cdc4c65b8
- github.com/python/cpython/issues/90309
- github.com/python/cpython/pull/148848
- mail.python.org/archives/list/security-announce@python.org/thread/IVNWGV2BBNC3RHQAFS22UP4DY56SAXX3/
- cert-portal.siemens.com/productcert/html/ssa-457936.html
Fable 5.1 · high confidence · 2026-11-05
The vulnerable http.cookies.Morsel.js_output() is present unchanged in the python3 3.12.14 sources and ships in the target image as http/cookies.pyc; no Buildroot patch or stable backport fixes it.
However python3 is only on the target as a dependency of firewalld (via python-gobject), and no Python code in the image or product sources (site-packages, libexec, sbin, src/, board/) imports http.cookies or calls js_output. The product's management interfaces (NETCONF/RESTCONF, CLI, web UI) are not Python-based and no YANG/CLI option starts a Python HTTP/CGI service, so reaching this code requires a root shell and a custom Python web application.
Document as N/A and pick up the fix in the next routine python3 bump.
Evidence 6
Vulnerable code present: emits inline <script>, only escapes '"', no base64 encoding; upstream fix absent
output/build/python3-3.12.14/Lib/http/cookies.py:391-402 (Morsel.js_output)
12 Buildroot patches, all build/option related; none modify Lib/http/cookies.py
output/build/python3-3.12.14/.applied_patches_list
BR2_PACKAGE_PYTHON3=y but not selected in defconfig; pulled in by firewalld (output/.config:3208) -> buildroot/package/firewalld/Config.in:18 -> python-gobject -> python3
output/.config:1486 / configs/x86_64_defconfig
Shipped in rootfs; contains 'js_output' and '// end hiding' template strings, so vulnerable function is in the image
output/target/usr/lib/python3.12/http/cookies.pyc
No consumer of http.cookies/js_output/SimpleCookie/Morsel; only _compat_pickle.pyc references the module name (pickle name map, no call)
grep over output/target site-packages, usr/libexec, usr/sbin, usr/bin, gobject-introspection, src/, package/, board/
Only Python-dependent service; not in enabled/, and firewalld does not use http.cookies
board/common/rootfs/etc/finit.d/available/firewalld.conf
Version and patches
NVD range includes 3.12.14; fix is cpython gh-90309 / PR #148848 (commits 3c59b8b, 76b3923, f795e04), landed after 3.12.14. No backport in this tree and no Buildroot patch names the CVE. Package is affected.
Recommendation
Document as N/A for the shipped product (no code path calls Morsel.js_output; no Python HTTP/CGI or web UI generates HTML from cookies). Pick up the fix with the next routine python3 version bump; no urgent backport required.
Open questions
None material. Any out-of-tree Python an operator copies onto the device via a root shell is outside product scope.
Members of Kernel Kit decide. Sign in if you are one.