High severityNVD Advisory· Published Mar 20, 2023· Updated Feb 25, 2025
CairoSVG improperly processes SVG files loaded from external resources
CVE-2023-27586
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
CairoSVGPyPI | < 2.7.0 | 2.7.0 |
Affected products
6- ghsa-coords5 versionspkg:pypi/cairosvgpkg:rpm/opensuse/python-CairoSVG&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/python-CairoSVG&distro=openSUSE%20Leap%2015.5pkg:rpm/suse/python-CairoSVG&distro=SUSE%20Package%20Hub%2015%20SP4pkg:rpm/suse/python-CairoSVG&distro=SUSE%20Package%20Hub%2015%20SP5
< 2.7.0+ 4 more
- (no CPE)range: < 2.7.0
- (no CPE)range: < 2.5.2-bp154.2.3.1
- (no CPE)range: < 2.5.2-bp155.3.3.1
- (no CPE)range: < 2.5.2-bp154.2.3.1
- (no CPE)range: < 2.5.2-bp155.3.3.1
Patches
Vulnerability mechanics
Generated on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
7- github.com/advisories/GHSA-rwmf-w63j-p7gvghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-27586ghsaADVISORY
- github.com/Kozea/CairoSVG/commit/12d31c653c0254fa9d9853f66b04ea46e7397255ghsax_refsource_MISCWEB
- github.com/Kozea/CairoSVG/commit/33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53ghsax_refsource_MISCWEB
- github.com/Kozea/CairoSVG/releases/tag/2.7.0ghsax_refsource_MISCWEB
- github.com/Kozea/CairoSVG/security/advisories/GHSA-rwmf-w63j-p7gvghsax_refsource_CONFIRMWEB
- github.com/pypa/advisory-database/tree/main/vulns/cairosvg/PYSEC-2023-9.yamlghsaWEB
News mentions
0No linked articles in our index yet.