USN-9096-1: CairoSVG vulnerability

Publication date

17 November 2026

Overview

CairoSVG could allow unintended access to network services.


Packages

  • cairosvg - SVG converter based on Cairo

Details

It was discovered that CairoSVG fetched external files referenced by SVG
documents by default. If a user or automated system were tricked into
converting a specially crafted SVG file, an attacker could possibly use
this issue to perform server-side request forgery attacks or cause a denial
of service. After this update, CairoSVG only fetches external files when
the unsafe option is used.

It was discovered that CairoSVG fetched external files referenced by SVG
documents by default. If a user or automated system were tricked into
converting a specially crafted SVG file, an attacker could possibly use
this issue to perform server-side request forgery attacks or cause a denial
of service. After this update, CairoSVG only fetches external files when
the unsafe option is used.

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
22.04 LTS jammy python3-cairosvg –  2.5.2-1ubuntu0.1~esm1  
20.04 LTS focal python3-cairosvg –  2.4.2-1ubuntu0.1~esm1  
18.04 LTS bionic python-cairosvg –  1.0.20-1ubuntu0.1~esm1  
python3-cairosvg –  1.0.20-1ubuntu0.1~esm1  
16.04 LTS xenial python-cairosvg –  1.0.19-1ubuntu0.1~esm1
python3-cairosvg –  1.0.19-1ubuntu0.1~esm1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›