CairoSVG improperly processes SVG files loaded from external resources
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Kozea | CairoSVG | before 2.7.0 | 2.7.0 | Patch available | CNA |
| — | CairoSVG (PyPI) | before 2.7.0 | 2.7.0 | Patch available | GHSA-rwmf-w63j-p7gv |
- CairoSVG VendorKozea Affected before 2.7.0 Fixed in 2.7.0 Patch available CNA
- CairoSVG (PyPI) Vendor— Affected before 2.7.0 Fixed in 2.7.0 Patch available GHSA-rwmf-w63j-p7gv
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:* | before 2.7.0 | Vulnerable | Courtbouillon |
- cpe:2.3:a:courtbouillon:cairosvg:*:*:*:*:*:*:*:* Versions before 2.7.0 Vulnerable ·Courtbouillon
Remediation
- Fix · CNA CairoSVG (Kozea) Fixed in 2.7.0
- Fix · GHSA-rwmf-w63j-p7gv CairoSVG (PyPI) Fixed in 2.7.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2023-27586
- 2026-10-03 Alias added: GHSA-rwmf-w63j-p7gv
References
Patch 2
Advisory 2
More Kozea vulnerabilities
- TI-2026-69644 Inefficient path parsing in CairoSVG enables denial of service CVSS 4.0HIGH 8.7
- TI-2026-24451 CairoSVG vulnerable to Exponential DoS via recursive <use> element amplification CVSS 3.1HIGH 7.5
- TI-2025-42134 WeasyPrint Vulnerable to Server-Side Request Forgery (SSRF) Protection Bypass via HTTP Redirect CVSS 3.1HIGH 7.5
- TI-2026-36607 WeasyPrint: CSS Injection via Presentational Hints CVSS 3.1MEDIUM 6.5
- TI-2026-39778 WeasyPrint restrictive URL fetcher bypass allows local file read and SSRF CVSS 3.1MEDIUM 6.2
- TI-2026-68895 WeasyPrint passes EPS images to Ghostscript, risking code execution CVSS 3.1HIGH 8.8
Sources
- CVE-2023-27586 · CVE Program
- CVE-2023-27586 · NVD
- FIRST EPSS
- GHSA-rwmf-w63j-p7gv · GitHub Advisory Database · CC BY 4.0
- CVE-2023-27586 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences