chore(deps): update dependency cairosvg to v2.9.0 [security]#1063
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency cairosvg to v2.9.0 [security]#1063renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.8.2→2.9.0GitHub Vulnerability Alerts
CVE-2026-31899
Summary
Kozea/CairoSVG has exponential denial of service via recursive
<use>element amplification incairosvg/defs.py(line ~335). This causes CPU exhaustion from a small input.Vulnerable Code
File:
cairosvg/defs.py(line ~335), functionuse()The
use()function recursively processes<use>elements without any depth or count limits. With 5 levels of nesting and 10 references each, a 1,411-byte SVG triggers 10^5 = 100,000 render calls.Impact
Proof of Concept
Save as
poc.svgand runtimeout 10 cairosvg poc.svg -o test.png:Expected:
timeoutkills the process after 10 seconds (it never completes on its own).Alternatively test with Python:
Suggested Fix
Add recursion depth counter to
use()function. Cap at e.g. 10 levels. Also add total element budget to prevent amplification.References
Credit
Kai Aizen (SnailSploit) — Adversarial AI & Security Research
Release Notes
Kozea/CairoSVG (cairosvg)
v2.9.0Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.