Read the docs

Integer overflow causes heap out-of-bounds write in node-fontnik

Priority LOW 37CWE-190Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
None · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

mapbox node-fontnik before 0.7.7 contains an integer overflow (CWE-190) in RenderSDF. The SDF bitmap size is computed in 32-bit unsigned int, so a large glyph wraps to a small buffer that is still written one byte per pixel, corrupting the heap. A remote attacker with low privileges can upload a crafted font to write out of bounds and crash the process.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

node-fontnik is a library that delivers a range of glyphs rendered as SDFs (signed distance fields) in a protocol buffer. Prior to version 0.7.7, a crafted font could trigger a heap out-of-bounds write in RenderSDF (include/mapbox/glyph_foundry_impl.hpp). RenderSDF computed the SDF bitmap allocation size as buffered_width * buffered_height in 32-bit unsigned int. Glyph dimensions are derived from the uploaded font's outline bounding box with no upper bound, so a glyph large enough to make that product exceed 2³² wrapped to a small value. The buffer was then under-allocated while the render loop still wrote one byte per pixel, corrupting the heap (CWE-190 → CWE-787) and crashing the process. A 680-byte font is enough to drive FreeType to a 65536×65536 buffered glyph, wrapping the size to 0. This issue has been patched in version 0.7.7.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.0041 35th percentileScored 2026-11-16
Fix Fixed node-fontnik (mapbox): 0.7.7

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Mapboxnode-fontnikbefore 0.7.70.7.7Patch availableCNA
  • node-fontnik VendorMapbox Affected before 0.7.7 Fixed in 0.7.7 Patch available CNA

Remediation

Upgrade mapbox node-fontnik to version 0.7.7, which fixes this flaw.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA node-fontnik (mapbox) Fixed in 0.7.7

Timeline

  1. 2026-11-11 Threatist record created from CVE-2026-63660
  2. 2026-11-12 Priority changed: MEDIUM → LOW
  3. 2026-11-13 CISA SSVC decision points changed

References

  • TI-2016-08736 Cryptographic flaw in HackerOne npm-test-sqlite3-trunk node module CVSS 3.0HIGH 8.1
  • TI-2022-17905 Integer overflow in Mapbox CVSS 3.1HIGH 7.5
  • TI-2017-14386 Mapbox.js versions 1.x prior to 1.6.6 and 2.x prior to 2.2.4 are vulnerable to a… CVSS 3.1MEDIUM 6.1

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences