Search

Find a vulnerability

Search criteria

    2 vulnerabilities found for node-fontnik by mapbox

    CVE-2026-63660 (GCVE-0-2026-63660)

    Vulnerability from nvd – Published: 2026-11-11 02:40 – Updated: 2026-11-13 17:02
    VLAI
    Title
    node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-13 16:58 UTC
    CWE
    • CWE-190 - Integer Overflow or Wraparound
    • CWE-787 - Out-of-bounds Write
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7840 records in the last 180 days details
    Impacted products
    Vendor Product Version
    mapbox node-fontnik Affected: < 0.7.7
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-63660",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-13T16:58:14.309072Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-13T17:02:51.147Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "node-fontnik",
              "vendor": "mapbox",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 0.7.7"
                }
              ]
            }
          ],
          "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\u0027s outline bounding box with no upper bound, so a glyph large enough to make that product exceed 2\u00b3\u00b2 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 \u2192 CWE-787) and crashing the process. A 680-byte font is enough to drive FreeType to a 65536\u00d765536 buffered glyph, wrapping the size to 0. This issue has been patched in version 0.7.7."
            }
          ],
          "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",
                  "description": "CWE-190: Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787: Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-11T02:40:47.419Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj"
            },
            {
              "name": "https://github.com/mapbox/node-fontnik/pull/202",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/mapbox/node-fontnik/pull/202"
            },
            {
              "name": "https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7"
            }
          ],
          "source": {
            "advisory": "GHSA-cfm6-c7rv-58xj",
            "discovery": "UNKNOWN"
          },
          "title": "node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-63660",
        "datePublished": "2026-11-11T02:40:47.419Z",
        "dateReserved": "2026-07-17T14:47:08.031Z",
        "dateUpdated": "2026-11-13T17:02:51.147Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-63660 (GCVE-0-2026-63660)

    Vulnerability from cvelistv5 – Published: 2026-11-11 02:40 – Updated: 2026-11-13 17:02
    VLAI
    Title
    node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF
    Summary
    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.
    SSVC
    Exploitation: none Automatable: no Technical Impact: total
    CISA Coordinator · CISA-ADP (v2.0.3)
    Decision recorded 2026-11-13 16:58 UTC
    CWE
    • CWE-190 - Integer Overflow or Wraparound
    • CWE-787 - Out-of-bounds Write
    Assigner
    GitHub_M CNA under the mitre root
    CNA scorecard C 72/100 over 7840 records in the last 180 days details
    Impacted products
    Vendor Product Version
    mapbox node-fontnik Affected: < 0.7.7
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2026-63660",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "total"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2026-11-13T16:58:14.309072Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2026-11-13T17:02:51.147Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "product": "node-fontnik",
              "vendor": "mapbox",
              "versions": [
                {
                  "status": "affected",
                  "version": "\u003c 0.7.7"
                }
              ]
            }
          ],
          "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\u0027s outline bounding box with no upper bound, so a glyph large enough to make that product exceed 2\u00b3\u00b2 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 \u2192 CWE-787) and crashing the process. A 680-byte font is enough to drive FreeType to a 65536\u00d765536 buffered glyph, wrapping the size to 0. This issue has been patched in version 0.7.7."
            }
          ],
          "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",
                  "description": "CWE-190: Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            },
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787: Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-11T02:40:47.419Z",
            "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
            "shortName": "GitHub_M"
          },
          "references": [
            {
              "name": "https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj",
              "tags": [
                "x_refsource_CONFIRM"
              ],
              "url": "https://github.com/mapbox/node-fontnik/security/advisories/GHSA-cfm6-c7rv-58xj"
            },
            {
              "name": "https://github.com/mapbox/node-fontnik/pull/202",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/mapbox/node-fontnik/pull/202"
            },
            {
              "name": "https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7",
              "tags": [
                "x_refsource_MISC"
              ],
              "url": "https://github.com/mapbox/node-fontnik/releases/tag/v0.7.7"
            }
          ],
          "source": {
            "advisory": "GHSA-cfm6-c7rv-58xj",
            "discovery": "UNKNOWN"
          },
          "title": "node-fontnik: integer-overflow heap out-of-bounds write in RenderSDF"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "assignerShortName": "GitHub_M",
        "cveId": "CVE-2026-63660",
        "datePublished": "2026-11-11T02:40:47.419Z",
        "dateReserved": "2026-07-17T14:47:08.031Z",
        "dateUpdated": "2026-11-13T17:02:51.147Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }