Vulnerability library
Security checkMarch 19, 2026

Uncontrolled memory allocation via crafted SVG dimensions in @dicebear/converter

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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

Could your website be exposed too?

SmartScanner can check your website for Uncontrolled memory allocation via crafted SVG dimensions in @dicebear/converter and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 19, 2026