CVE-2026-107378: CairoSVG · Quadratic-time DoS parsing a crafted SVG <path>
Affects standardebooksSource GCVE Database
Not known to be exploited · CVSS 8.7 High : upgrade to 4.1.1 soon.
Data as of 22 Nov 2026, 18:23 UTC
- Patch
- Available – fixed in 4.1.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 8 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.
What to do
Upgrade standardebooks to 4.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewstandardebookspkg:brew/standardebooksOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in CairoSVG version 4.1.1. Users and service operators should upgrade to version 4.1.1 or later to mitigate this vulnerability. The fix involves optimizing the tokenizer to use a single forward scan and replacing list.pop(0) with more efficient data structures like collections.deque.popleft. Until upgraded, consider limiting the size or complexity of SVG inputs to reduce exposure.
Description
CVE-2026-107378 is a denial-of-service vulnerability in CairoSVG affecting the parsing of SVG <path> elements with many segments. The vulnerability arises from quadratic-time complexity in the path-data tokenizer and marker handling code, causing excessive CPU usage when rendering crafted SVGs. This can lead to significant delays or service disruption when processing untrusted SVG inputs. The issue affects CairoSVG versions from 2.9.2 up to but not including 4.1.1 and is fixed in version 4.1.1.
References
- github.com/Kozea/CairoSVG/security/advisories/GHSA-c3jg-qh8m-j3h2 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-107378 (opens in a new tab)
- github.com/Kozea/CairoSVG/commit/9d63f049f9988d0ddda3eb94564ac3a50a286523 (opens in a new tab)
- github.com/Kozea/CairoSVG/commit/a4d585eb374724b79676e9cceaa9e9a1a4358565 (opens in a new tab)
- github.com/Kozea/CairoSVG (opens in a new tab)
- github.com/Kozea/CairoSVG/releases/tag/2.9.1 (opens in a new tab)