Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @dicebear/converter
  4. ›
  5. CVE-2026-29112

CVE-2026-29112: Uncontrolled memory allocation via crafted SVG dimensions in @dicebear/converter

March 16, 2026

The ensureSize() function in @dicebear/converter (versions < 9.4.0) read the width and height attributes from the input SVG to determine the output canvas size for rasterization (PNG, JPEG, WebP, AVIF). An attacker who can supply a crafted SVG with extremely large dimensions (e.g. width="999999999") could force the server to allocate excessive memory, leading to denial of service.

This primarily affects server-side applications that pass untrusted or user-supplied SVGs to the converter’s toPng(), toJpeg(), toWebp(), or toAvif() functions. Applications that only convert self-generated DiceBear avatars are not practically exploitable, but are still recommended to upgrade.

References

  • github.com/advisories/GHSA-v3r3-4qgc-vw66
  • github.com/dicebear/dicebear
  • github.com/dicebear/dicebear/commit/42a59eac46a3c68598859e608ec45e578b27614a
  • github.com/dicebear/dicebear/releases/tag/v9.4.0
  • github.com/dicebear/dicebear/security/advisories/GHSA-v3r3-4qgc-vw66
  • nvd.nist.gov/vuln/detail/CVE-2026-29112

Code Behaviors & Features

Detect and mitigate CVE-2026-29112 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.4.0

Fixed versions

  • 9.4.0

Solution

Upgrade to version 9.4.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/@dicebear/converter/CVE-2026-29112.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 17 Mar 2026 12:18:49 +0000.