ALAS2-2026-3366


Amazon Linux 2 Security Advisory: ALAS2-2026-3366
Advisory Released Date: 2026-06-22
Advisory Updated Date: 2026-06-22
Severity: Medium

Issue Overview:

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. (CVE-2026-6019)


Affected Packages:

python


Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.


Issue Correction:
Run yum update python or yum update --advisory ALAS2-2026-3366 to update your system.

New Packages:
aarch64:
    python-2.7.18-1.amzn2.0.20.aarch64
    python-libs-2.7.18-1.amzn2.0.20.aarch64
    python-devel-2.7.18-1.amzn2.0.20.aarch64
    python-tools-2.7.18-1.amzn2.0.20.aarch64
    tkinter-2.7.18-1.amzn2.0.20.aarch64
    python-test-2.7.18-1.amzn2.0.20.aarch64
    python-debug-2.7.18-1.amzn2.0.20.aarch64
    python-debuginfo-2.7.18-1.amzn2.0.20.aarch64

i686:
    python-2.7.18-1.amzn2.0.20.i686
    python-libs-2.7.18-1.amzn2.0.20.i686
    python-devel-2.7.18-1.amzn2.0.20.i686
    python-tools-2.7.18-1.amzn2.0.20.i686
    tkinter-2.7.18-1.amzn2.0.20.i686
    python-test-2.7.18-1.amzn2.0.20.i686
    python-debug-2.7.18-1.amzn2.0.20.i686
    python-debuginfo-2.7.18-1.amzn2.0.20.i686

src:
    python-2.7.18-1.amzn2.0.20.src

x86_64:
    python-2.7.18-1.amzn2.0.20.x86_64
    python-libs-2.7.18-1.amzn2.0.20.x86_64
    python-devel-2.7.18-1.amzn2.0.20.x86_64
    python-tools-2.7.18-1.amzn2.0.20.x86_64
    tkinter-2.7.18-1.amzn2.0.20.x86_64
    python-test-2.7.18-1.amzn2.0.20.x86_64
    python-debug-2.7.18-1.amzn2.0.20.x86_64
    python-debuginfo-2.7.18-1.amzn2.0.20.x86_64