USN-9096-1: cairosvg vulnerability

Published Nov 17, 2026
·
Updated

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.

Affected Software

16 affected componentsFixes available
ubuntu/cairosvg<1.0.19-1ubuntu0.1~esm1
1.0.19-1ubuntu0.1~esm1
ubuntu/cairosvg<1.0.20-1ubuntu0.1~esm1
1.0.20-1ubuntu0.1~esm1
ubuntu/cairosvg<2.4.2-1ubuntu0.1~esm1
2.4.2-1ubuntu0.1~esm1
ubuntu/cairosvg<2.5.2-1ubuntu0.1~esm1
2.5.2-1ubuntu0.1~esm1
All of the following
ubuntu/python3-cairosvg<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=22.04
All of the following
ubuntu/python3-cairosvg<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=20.04
All of the following
ubuntu/python-cairosvg<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python3-cairosvg<Ubuntu Pro
Ubuntu Pro
Ubuntu Ubuntu=18.04
All of the following
ubuntu/python-cairosvg<1.0.19-1ubuntu0.1~esm1
1.0.19-1ubuntu0.1~esm1
Ubuntu Ubuntu=16.04
All of the following
ubuntu/python3-cairosvg<1.0.19-1ubuntu0.1~esm1
1.0.19-1ubuntu0.1~esm1
Ubuntu Ubuntu=16.04

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/cairosvg to a version that resolves this vulnerability.

    Fixed in 1.0.19-1ubuntu0.1~esm1
  2. Upgrade

    Upgrade ubuntu/cairosvg to a version that resolves this vulnerability.

    Fixed in 1.0.20-1ubuntu0.1~esm1
  3. Upgrade

    Upgrade ubuntu/cairosvg to a version that resolves this vulnerability.

    Fixed in 2.4.2-1ubuntu0.1~esm1
  4. Upgrade

    Upgrade ubuntu/cairosvg to a version that resolves this vulnerability.

    Fixed in 2.5.2-1ubuntu0.1~esm1
  5. Upgrade

    Upgrade ubuntu/python3-cairosvg to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  6. Upgrade

    Upgrade ubuntu/python-cairosvg to a version that resolves this vulnerability.

    Fixed in Ubuntu Pro
  7. Upgrade

    Upgrade ubuntu/python-cairosvg to a version that resolves this vulnerability.

    Fixed in 1.0.19-1ubuntu0.1~esm1
  8. Upgrade

    Upgrade ubuntu/python3-cairosvg to a version that resolves this vulnerability.

    Fixed in 1.0.19-1ubuntu0.1~esm1
  9. Configuration

    Do not use the unsafe option when converting SVG files; external files are fetched only when this option is used.

    CairoSVG unsafe option = disabled

Event History

Nov 17, 2026
Advisory Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
DescriptionAffected Software
Advisory Published
via OSV·12:43 AM
Data Sourced
via OSV·12:43 AM
DescriptionAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is most exposed to this issue?

Systems that convert SVG files supplied by untrusted users or external sources are most exposed. This includes automated conversion workflows and services that process uploaded SVG documents.

2

What does an attacker need to exploit it?

An attacker needs to get a specially crafted SVG document converted by CairoSVG. The SVG can reference external files, which CairoSVG fetched by default before this update.

3

What changes after applying the update?

CairoSVG no longer fetches external files by default. External fetching now requires use of the unsafe option.

4

What can be done if the update cannot be applied immediately?

Avoid converting untrusted SVG files, especially in automated workflows. Restricting SVG conversion to trusted inputs reduces the opportunity for crafted external references to trigger server-side requests or denial of service.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203