Fabric mod · client only · v1.1.0

A font should never run code on your PC.

A public exploit turns a Minecraft server resource pack into native code execution through a crafted TrueType font. FontGuard stands guard with two layers of protection.

  • Minecraft 26.3
  • Fabric Loader ≥ 0.19.5
  • Java 25
  • MIT
FontGuard mascot: a pixel-art wooden shield guardian with a teal padlock emblem, holding a sword shaped like the letter A

A font is a program, and FreeType runs it.

TrueType fonts can carry bytecode for "hinting". Minecraft bundles FreeType and lets it execute that bytecode while rendering text.

A bug in the interpreter lets a hostile font take over the game process. The bug is in Minecraft's bundled FreeType, not in any mod.

Scope: the public proof of concept targets Minecraft 26.3 on Windows x64 and that exact build. On an untrusted server the normal resource-pack prompt is the only barrier. Mojang has already bumped the bundled FreeType library in 26.4-pre-1.
FontGuard mascot blocking a hostile red glyph with a shield barrier
Step 01 · Delivery

Malicious pack. A server sends a resource pack with specially crafted TrueType fonts.

Step 02 · Trigger

Glyph is hinted. Minecraft draws text and asks FreeType to hint the glyph, running the font's own bytecode.

Step 03 · Impact

Code execution. The interpreter bug becomes native code execution on the player's PC.

144/144

exploit fonts blocked in testing — 0 streams opened, 0 native parser calls

0

settings, network calls or extra files

2 layers

Server-delivered TrueType fonts are blocked before they're opened. Anything still allowed through loads with FT_LOAD_NO_HINTING, so the font's own bytecode never runs.

The gate, in short

Rejects by source, then by digest, before any native font call.

if (source == SERVER || id.startsWith("server/"))
  throw blocked("server-provided TrueType font");
// exact digest match for the exploit's 144 fonts
if (DENIED.contains(sha256(bytes)))
  throw blocked("known exploit font");
// anything that still loads:
flags |= FT_LOAD_NO_HINTING | FT_LOAD_NO_AUTOHINT;
  • FontGuard mascot giving a thumbs up
  • Local fonts still work

    Tested with unmodified Arial/Consolas: normal local fonts keep loading.

  • Client only

    No settings, no network access, no extra files. Never install it on a server.

  • Fails closed

    A missing or broken denylist stops the mod from loading, instead of silently turning protection off.

Requirements

FontGuard works alongside your other mods — no Fabric API needed.

Minecraft 26.3
Fabric Loader ≥ 0.19.5
Java 25
No Fabric API
MIT License

What FontGuard is, and is not.

✓ It is

  • A gate that blocks server-delivered TrueType fonts before FreeType ever sees them — 144/144 of the exploit's own files rejected, 0 streams opened, 0 native parser calls
  • Hinting disabled for any font still allowed through, so embedded bytecode can't run that way either
  • Tested with unmodified local Arial/Consolas fonts to confirm normal fonts keep loading

✕ It is not

  • An official fix. Mojang's patch is already landing in 26.4-pre-1 — install it once stable.
  • General malware protection. It only gates this one font-delivery path.
  • Selective about harmless server fonts: all server-delivered TrueType fonts are blocked on purpose, not just malicious ones. Affected text falls back to replacement glyphs.
FontGuard mascot holding up the mod package

FontGuard 1.1.0

For Minecraft 26.3 · Fabric Loader ≥ 0.19.5 · Java 25 · about 14 KB

SHA-256 6b5e6fdee0753c38529b48f6cd5e229eae7e0a1c1831ed3a7f9233d34f4374e9
Download .jar
  1. Install Fabric Loader 0.19.5 or newer for Minecraft 26.3 from fabricmc.net. Fabric API is not needed.
  2. Drop the jar into .minecraft/mods.
  3. Start the game. No config, no menu. It just works.

1.1.0 — server-delivered TrueType fonts are now blocked before they're opened, plus a SHA-256 denylist for the exploit's 144 fonts. 1.0.1 — fixed a second, previously unprotected glyph call. 1.0.0 — initial hinting-flag mitigation.