{"id":"CVE-2026-63660","summary":"node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF","details":"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.","aliases":["GHSA-cfm6-c7rv-58xj"],"modified":"2026-11-18T05:00:12.989593349Z","published":"2026-11-11T02:40:47.419Z","database_specific":{"cwe_ids":["CWE-190","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63660.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63660.json"},{"type":"ADVISORY","url":"https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63660"},{"type":"FIX","url":"https://github.com/mapbox/node-fontnik/pull/202"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mapbox/node-fontnik","events":[{"introduced":"0"},{"fixed":"dd14aa539c4888d557f1eb0d9ce6a530b5a18567"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"0.7.7"}]},{"original_tag":"v0.7.7","range":[{"fixed":"dd14aa539c4888d557f1eb0d9ce6a530b5a18567"}],"source":"REFERENCES_TAG"},{"range":[{"introduced":"0"},{"fixed":"0.7.7"}],"source":"DESCRIPTION"}]}}],"versions":["v0.7.6","v0.7.5","v0.7.4","v0.6.0","v0.5.2","v0.5.1","v0.5.0","v0.4.8","v0.4.7","v0.4.6","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.3.2","v0.3.1","v0.2.6","v0.2.5","v0.2.4","v0.2.3","v0.2.2","v0.2.1","v0.2.0","v0.1.4","v0.1.3","v0.1.2","v0.1.1","v0.1.0","v0.0.4","v0.0.3","v0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63660.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"}]}