{"id":"CVE-2026-29112","published":"2026-03-18T02:19:56Z","modified":"2026-03-18T20:03:09Z","title":"@dicebear/converter vulnerable to ncontrolled memory allocation via crafted SVG dimensions","vendor":"dicebear","product":"dicebear","tier":"tail","description":{"text":"DiceBear is an avatar library for designers and developers. Prior to version 9.4.0, the `ensureSize()` function in `@dicebear/converter` 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. This is fixed in version 9.4.0. The `ensureSize()` function no longer reads SVG attributes to determine output size. Instead, a new `size` option (default: 512, max: 2048) controls the output dimensions. Invalid values (NaN, negative, zero, Infinity) fall back to the default. If upgrading is not immediately possible, validate and sanitize the `width` and `height` attributes of any untrusted SVG input before passing it to the converter.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00394,"percentile":0.34424,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/dicebear/dicebear/security/advisories/GHSA-v3r3-4qgc-vw66","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/dicebear/dicebear/commit/42a59eac46a3c68598859e608ec45e578b27614a","tags":["x_refsource_MISC"]},{"url":"https://github.com/dicebear/dicebear/releases/tag/v9.4.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.88},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"dicebear","affectedVersions":[{"vendor":"dicebear","product":"dicebear","versions":["< 9.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-18T19:43:55.471633Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@dicebear/converter","vulnerableRanges":["<9.4.0"],"patched":["9.4.0"],"from":["GHSA-v3r3-4qgc-vw66"],"provenance":"source"}],"summary":{"text":"The flaw is in the ensureSize() function of @dicebear/converter, part of the DiceBear avatar library, which trusts the width and height attributes of an input SVG to set the output canvas size for rasterization. An attacker who can supply a crafted SVG with extremely large dimensions over the network, without authentication or user interaction, can force excessive memory allocation and cause a denial of service, primarily in server-side applications that pass untrusted SVGs to the converter's PNG, JPEG, WebP or AVIF functions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:55Z"},"euvd":{"id":"EUVD-2026-12743","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-29112","published":"2026-03-18","fixed":"9.4.0","kev":false},{"cve":"CVE-2026-33418","published":"2026-03-24","fixed":"9.4.2","kev":false,"link":{"from":"CVE-2026-29112","to":"CVE-2026-33418","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@dicebear/converter","fromFixed":"9.4.0","toFixed":"9.4.2","daysApart":6},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + description similarity"}]}}],"package":"npm:@dicebear/converter"}}