Intel

AIKIDO-2026-574821

fonttools is vulnerable to XML External Entity (XXE) Injection

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 9, 2026
October 9, 2026

58

CVE Score

Medium

XML External Entity (XXE) Injection

Are you affected? Scan for Free

TL;DR

fontTools' XML helper (fontTools.misc.etree) builds an lxml parser without disabling external entity resolution or network access. Parsing a crafted TTX, DesignSpace, or other XML-based font-adjacent file that contains an external entity reference lets the parser read local files or fetch network resources and return their contents to the caller. The fix disables entity resolution and network access on the lxml parser used throughout fontTools.

How do I fix this?

Upgrade the fonttools library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you parse XML-based font or font-adjacent files with the lxml-backed parser.

Package

Versions

3.31.0 - 4.65.0

Fixed in 4.66.0

Background info

fonttools is vulnerable to XML External Entity (XXE) Injection in versions 3.31.0 - 4.65.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea