All vulnerabilities

Servers and applications

CVE-2018-20852

http.cookiejar.DefaultPolicy.domain_return_ok in Lib/http/cookiejar.py in Python before 3.7.3 does not correctly validate the domain: it can be tricked into sending existing cookies to the wrong server. An attacker may abuse this flaw by using a server with a hostname that has another valid hostname as a suffix (e.g., pythonicexample.com to steal cookies for example.com). When a program uses…

Severity
Medium 4.3
Published
13 Jul 2019
Last changed
7 Oct 2026
Added to UpHeron
21 Oct 2026
Fixed in
3.4.10, 3.5.7, 3.6.9, 3.7.3
Sources
NVD

Affected software

SoftwareAffected versions
PythonServers and applications · cpe:a:python:python
  • From 2.0 up to 2.7.16
  • From 3.0.0 before 3.4.10
  • From 3.5.0 before 3.5.7
  • From 3.6.0 before 3.6.9
  • From 3.7.0 before 3.7.3

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2018-20852
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2018-20852