# cairosvg (PyPI) vulnerabilities

4 known vulnerabilities (1 critical, 2 high, 1 medium), with the versions each affects and the releases that fix them.

## At a glance

- Latest release: 2.9.1 (Sep 7, 2026): no advisory affects it
- Newest unaffected release: 2.9.1 (Sep 7, 2026), the latest release
- Weekly downloads: 4.3M
- Dependents: 616
- Releases: 67 since 0.1.0 (Dec 13, 2011)
- Registry: https://pypi.org/project/cairosvg/
- Releases read: Nov 8, 2026

## Version timeline

Affected versions per advisory, in version order:

- CVE-2026-107378: 0.1.0 to 2.9.0 (2.9.1 is outside it)
- CVE-2026-31899: 0.1.0 to 2.8.2 (2.9.0 is outside it)
- CVE-2023-27586: 0.1.0 to 2.6.0 (2.7.0 is outside it)
- CVE-2021-21236: 0.1.0 to 2.5.0 (2.5.1 is outside it)

## Advisories (4)

### [CVE-2026-107378](https://cve.now/CVE-2026-107378): CairoSVG: Quadratic-time DoS parsing a crafted SVG \<path\>

- Severity: High 8.7
- Published: Oct 8, 2026
- Affected: fixed in 2.9.1.
- Fixed in 2.9.1 (released Sep 7, 2026, 31 days before disclosure).
- The latest release, 2.9.1, is not affected.

### [CVE-2026-31899](https://cve.now/CVE-2026-31899): CairoSVG vulnerable to Exponential DoS via recursive \<use\> element amplification

- Severity: High 7.5
- Published: Mar 13, 2026
- Affected: fixed in 2.9.0.
- Fixed in 2.9.0 (released Mar 14, 2026, 1 day after disclosure).
- The latest release, 2.9.1, is not affected.

### [CVE-2023-27586](https://cve.now/CVE-2023-27586): CairoSVG improperly processes SVG files loaded from external resources

- Severity: Critical 9.9
- Published: Mar 20, 2023
- Affected: fixed in 2.7.0.
- Fixed in 2.7.0 (released Mar 20, 2023, the day of disclosure).
- The latest release, 2.9.1, is not affected.

### [CVE-2021-21236](https://cve.now/CVE-2021-21236): Regular Expression Denial of Service in CairoSVG

- Severity: Medium 5.7
- Published: Jan 6, 2021
- Affected: fixed in 2.5.1; fixed in 2.5.1.
- Fixed in 2.5.1 (released Jan 6, 2021, the day of disclosure).
- The latest release, 2.9.1, is not affected.

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/packages/pypi/cairosvg
Site guide for agents: https://cve.now/llms.txt
Uses NVD data; not endorsed by NVD.
