Uncontrolled memory allocation via crafted SVG dimensions in @dicebear/converter
- Severity:
- High
Description
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.
Recommendation
Update the @dicebear/converter package to the latest compatible version. Followings are version details:
- Affected version(s): < 9.4.0
- Patched version(s): 9.4.0
References
Related Issues
- SVG Dimension Capping Bypass via XML Comment Injection in @dicebear/converter ensureSize() - CVE-2026-33418
- SVG Injection via Unsanitized Options in @dicebear/core and @dicebear/initials - @dicebear/core - CVE-2026-33311
- SVG Injection via Unsanitized Options in @dicebear/core and @dicebear/initials - CVE-2026-33311
- Serialize JavaScript has CPU Exhaustion Denial of Service via crafted array-like objects - CVE-2026-34043
You might also like:
- Tags:
- npm
- @dicebear/converter
Anything's wrong? Let us know Last updated on March 19, 2026


