Improper Encoding or Escaping of Output Affecting python2.7 package, versions <2.7.18-1~20.04.7+esm10


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.21% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2004-PYTHON27-16153528
  • published11 Sept 2026
  • disclosed22 Apr 2026

Introduced: 22 Apr 2026

CVE-2026-6019  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade Ubuntu:20.04 python2.7 to version 2.7.18-1~20.04.7+esm10 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream python2.7 package and not the python2.7 package as distributed by Ubuntu. See How to fix? for Ubuntu:20.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1