{"id":"CVE-2026-63660","state":"PUBLISHED","title":"node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF","description":"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.","publishedAt":"2026-11-11T02:40:47.419Z","updatedAt":"2026-11-13T17:02:51.147Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["mapbox node-fontnik"],"affected":[{"vendor":"mapbox","product":"node-fontnik","versions":[{"version":"< 0.7.7","status":"affected"}]}],"references":["https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj","https://github.com/mapbox/node-fontnik/pull/202","https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7"],"weaknesses":["CWE-190","CWE-787"],"ingestedAt":"2026-11-13T17:10:05.950Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/63xxx/CVE-2026-63660.json","commit":"fc7ecf23ecb0bc160b254d7d36b453c067c7184e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-63660","state":"PUBLISHED","datePublished":"2026-11-11T02:40:47.419Z","dateUpdated":"2026-11-13T17:02:51.147Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-07-17T14:47:08.031Z"},"containers":{"cna":{"title":"node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mapbox","product":"node-fontnik","versions":[{"version":"< 0.7.7","status":"affected"}]}],"references":[{"url":"https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj","name":"https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mapbox/node-fontnik/pull/202","name":"https://github.com/mapbox/node-fontnik/pull/202","tags":["x_refsource_MISC"]},{"url":"https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7","name":"https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"CWE-190: Integer Overflow or Wraparound","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-787","lang":"en","description":"CWE-787: Out-of-bounds Write","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-11T02:40:47.419Z"},"source":{"advisory":"GHSA-cfm6-c7rv-58xj","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-13T16:58:14.309072Z","id":"CVE-2026-63660","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-13T17:02:51.147Z"}}]}}}