{"answers":{"affected":"3 open source packages ship an affected version, including cairosvg and CairoSVG. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-27586 in the wild and no public exploit code.","fix":"Upgrade cairosvg to 2.7.0 or later.","what":"CVE-2023-27586 is a critical vulnerability in Kozea CairoSVG, published on 20 Mar 2023."},"fix_prompt":"Check this codebase for CVE-2023-27586 and fix it if it is affected.\n\nWhat it is: CVE-2023-27586 is a critical vulnerability in Kozea CairoSVG, published on 20 Mar 2023. \nExploitation: There is no known exploitation of CVE-2023-27586 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cairosvg (PyPI): affected all versions; fixed in 2.7.0\n- cairosvg (PyPI): affected all versions; fixed in 2.7.0\n- CairoSVG (PyPI): affected all versions; fixed in 2.7.0\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-2023-27586/ (Markdown: https://insights.sbomify.com/CVE-2023-27586/index.md)","id":"CVE-2023-27586","markdown":"https://insights.sbomify.com/CVE-2023-27586/index.md","name":"CVE-2023-27586","record":{"aliases":["DEBIAN-CVE-2023-27586","DSA-5382-1","GHSA-rwmf-w63j-p7gv","MGASA-2023-0126","PYSEC-2023-9","UBUNTU-CVE-2023-27586"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"cairosvg","vendor":"courtbouillon"}],"cvss":{"score":9.9,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:L","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-20","name":"Improper Input Validation"}],"description":"CairoSVG is an SVG converter based on Cairo, a 2D graphics library. Prior to version 2.7.0, Cairo can send requests to external hosts when processing SVG files. A malicious actor could send a specially crafted SVG file that allows them to perform a server-side request forgery or denial of service. Version 2.7.0 disables CairoSVG's ability to access other files online by default.","ecosystems":["PyPI"],"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":"CairoSVG improperly processes SVG files loaded from external resources","id":"CVE-2023-27586","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":null,"year":"2023"},"n_packages":3,"n_references":4,"next":{"headline":"Information disclosure in readtomyshoe","id":"CVE-2023-27587"},"packages":[{"ecosystem":"PyPI","fixed":["2.7.0"],"introduced":["0"],"last_affected":[],"package":"CairoSVG","purl":null,"source":"GHSA-rwmf-w63j-p7gv"},{"ecosystem":"PyPI","fixed":["2.7.0"],"introduced":["0"],"last_affected":[],"package":"cairosvg","purl":"pkg:pypi/cairosvg","source":"GHSA-rwmf-w63j-p7gv"},{"ecosystem":"PyPI","fixed":["2.7.0"],"introduced":["0"],"last_affected":[],"package":"cairosvg","purl":"pkg:pypi/cairosvg","source":"PYSEC-2023-9"}],"prev":{"headline":"Memory corruption in pjproject","id":"CVE-2023-27585"},"products":["CairoSVG"],"published":"2023-03-20","related":[{"cvss_score":7.5,"headline":"CairoSVG vulnerable to Exponential DoS via recursive \u003cuse\u003e element amplification","id":"CVE-2026-31899","kev_date_added":null,"published":"2026-03-13"},{"cvss_score":5.7,"headline":"Regular Expression Denial of Service in CairoSVG","id":"CVE-2021-21236","kev_date_added":null,"published":"2021-01-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-25","vendors":["Kozea"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2023-27586/"}