# CVE-2023-27586: CairoSVG improperly processes SVG files loaded from external resources

Source: https://junglewise.ai/threats/cve-2023-27586-cairosvg-improperly-processes-svg-files-loaded-from-external  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-03-20  
License: CC BY 4.0 with a link back

CVE-2023-27586 · Severity: low · CVSS 3.1 · Published 2023-03-20

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.

Technologies: [CairoSVG (PyPI)](https://junglewise.ai/threats/technologies/cairosvg). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2023-27586 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2023-27586 being exploited in the wild.

**How severe is CVE-2023-27586?** Low severity, with a CVSS score of 3.1, published 20 March 2023.

**Which products and versions are affected?** CairoSVG (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.0, GIT:introduced=0,fixed=12d31c653c0254fa9d9853f66b04ea46e7397255,fixed=33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53|ECOSYSTEM:introduced=0,fixed=2.7.0.

**Is there a fix for CVE-2023-27586?** Yes. CairoSVG (PyPI): upgrade to 2.7.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2023-27586?** Check whether you run CairoSVG (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- CairoSVG (PyPI): upgrade to 2.7.0 or later

  ```sh
  pip install "CairoSVG>=2.7.0"
  ```


## Affected products

- CairoSVG (PyPI) ECOSYSTEM:introduced=0,fixed=2.7.0, GIT:introduced=0,fixed=12d31c653c0254fa9d9853f66b04ea46e7397255,fixed=33007d4af9195e2bfb2ff9af064c4c2d8e4b2b53|ECOSYSTEM:introduced=0,fixed=2.7.0

## Identifiers

- CVE-2023-27586
- GHSA-rwmf-w63j-p7gv
- PYSEC-2023-9

## Related threats

- [CairoSVG quadratic-time DoS parsing crafted SVG path](https://junglewise.ai/threats/cve-2026-107378-cairosvg-quadratic-time-dos-parsing-a-crafted-svg-path)
- [Kozea CairoSVG exponential denial of service in defs.py](https://junglewise.ai/threats/cve-2026-31899-kozea-cairosvg-exponential-denial-of-service-in-defs-py)
- [Regular Expression Denial of Service in CairoSVG](https://junglewise.ai/threats/cve-2021-21236-regular-expression-denial-of-service-in-cairosvg)
