{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2018-20852 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2018-20852 is a medium-severity vulnerability in Python Python, published on 13 Jul 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-20852 and fix it if it is affected.\n\nWhat it is: CVE-2018-20852 is a medium-severity vulnerability in Python Python, published on 13 Jul 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2018-20852 in the wild and no public exploit code.\n\nAffected product: Python Python. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-20852/ (Markdown: https://insights.sbomify.com/CVE-2018-20852/index.md)","id":"CVE-2018-20852","markdown":"https://insights.sbomify.com/CVE-2018-20852/index.md","name":"CVE-2018-20852","record":{"aliases":["DEBIAN-CVE-2018-20852","DLA-1889-1","DLA-1906-1","GHSA-p5ff-6x75-2mgp","SUSE-SU-2019:2114-1","UBUNTU-CVE-2018-20852","openSUSE-SU-2019:1988-1","openSUSE-SU-2019:1989-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python standard library","requires_auth":"none","summary":"Attackers can steal cookies by exploiting domain validation flaws in Python's cookiejar, leading to information disclosure.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"python","vendor":"python"}],"cvss":{"score":4.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"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 http.cookiejar.DefaultPolicy and tries to do an HTTP connection to an attacker-controlled server, existing cookies can be leaked to the attacker. This affects 2.x through 2.7.16, 3.x before 3.4.10, 3.5.x before 3.5.7, 3.6.x before 3.6.9, and 3.7.x before 3.7.3.","ecosystems":["SUSE:Linux Enterprise Module for Basesystem 15","SUSE:Linux Enterprise Module for Basesystem 15 SP1","SUSE:Linux Enterprise Module for Desktop Applications 15","SUSE:Linux Enterprise Module for Desktop Applications 15 SP1","SUSE:Linux Enterprise Module for Python 2 15 SP1","openSUSE:Leap 15.0","openSUSE:Leap 15.1"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information disclosure in n/a","id":"CVE-2018-20852","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"python:python","products":["python:python"],"type":"information_disclosure","year":"2018"},"n_packages":12,"n_references":18,"next":{"headline":"An issue was discovered in the MailPoet Newsletters (aka wysija-newsletters) plugin before 2.8.2 for WordPress.","id":"CVE-2018-20853"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP1","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP1","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Desktop Applications 15 SP1","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP1","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 2 15 SP1","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/suse/python\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP1","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Python 2 15 SP1","fixed":["2.7.14-7.17.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/suse/python-base\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Python%202%2015%20SP1","source":"SUSE-SU-2019:2114-1"},{"ecosystem":"openSUSE:Leap 15.0","fixed":["2.7.14-lp150.6.17.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/opensuse/python\u0026distro=openSUSE%20Leap%2015.0","source":"openSUSE-SU-2019:1988-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["2.7.14-lp151.10.7.1"],"introduced":["0"],"last_affected":[],"package":"python","purl":"pkg:rpm/opensuse/python\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2019:1989-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["2.7.14-lp151.10.7.1"],"introduced":["0"],"last_affected":[],"package":"python-base","purl":"pkg:rpm/opensuse/python-base\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2019:1989-1"},{"ecosystem":"openSUSE:Leap 15.1","fixed":["2.7.14-lp151.10.7.1"],"introduced":["0"],"last_affected":[],"package":"python-doc","purl":"pkg:rpm/opensuse/python-doc\u0026distro=openSUSE%20Leap%2015.1","source":"openSUSE-SU-2019:1989-1"}],"prev":{"headline":"Missing authorization in n/a","id":"CVE-2018-20851"},"products":["n/a"],"published":"2019-07-13","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2008-5031","kev_date_added":null,"published":"2008-11-10"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2014-4650","kev_date_added":null,"published":"2020-02-20"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2016-5636","kev_date_added":null,"published":"2016-09-02"},{"cvss_score":9.8,"headline":"Path traversal in n/a","id":"CVE-2007-4559","kev_date_added":null,"published":"2007-08-28"},{"cvss_score":8.8,"headline":"Command injection in n/a","id":"CVE-2017-17522","kev_date_added":null,"published":"2017-12-14"},{"cvss_score":8.7,"headline":"Incremental HTMLParser feed() allows CPU-exhaustion DoS via repeated unterminated markup declarations","id":"CVE-2026-15308","kev_date_added":null,"published":"2026-07-09"},{"cvss_score":7.8,"headline":"Privilege escalation in n/a","id":"CVE-2019-13404","kev_date_added":null,"published":"2019-07-08"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["n/a"]},"summary":"Attackers can steal cookies by exploiting domain validation flaws in Python's cookiejar, leading to information disclosure.","url":"https://insights.sbomify.com/CVE-2018-20852/"}