Vulnerabilities/

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:

References

Related Issues

Tags:
npm
@dicebear/converter
Anything's wrong? Let us know Last updated on March 19, 2026