Intel

AIKIDO-2026-275945

fonttools is vulnerable to Path Traversal

Path Traversal Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Today

55

Medium Risk

This Affects:

PYTHONfonttools
4.40.0 - 4.64.0
Fixed in 4.65.0
Are you affected? Scan for Free

TL;DR

The fonttools varLib command line builds an output filename from the name attribute of a <variable-font> element in a designspace file. That value comes straight from the designspace and is joined into the output path without stripping directory components, so a name containing path traversal sequences writes the generated variable font outside the intended output directory and can overwrite files the process can access. The fix passes the name through os.path.basename before building the output path.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the fonttools varLib command or call fontTools.varLib.main on an untrusted designspace file.

Background info

fonttools is vulnerable to Path Traversal in versions 4.40.0 - 4.64.0.

How to fix this

Upgrade the fonttools library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform