The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-29112

CVE-2026-29112: DiceBear Avatar Library DoS Vulnerability

CVE-2026-29112 is a denial of service vulnerability in DiceBear avatar library caused by excessive memory allocation through crafted SVG dimensions. This article covers the technical details, affected versions, and mitigation strategies.

Published: March 20, 2026

CVE-2026-29112 Overview

CVE-2026-29112 is a Denial of Service vulnerability in DiceBear, 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 vulnerability 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.

Critical Impact

Server-side applications processing untrusted SVG input are vulnerable to memory exhaustion attacks, potentially causing complete service disruption through resource exhaustion.

Affected Products

  • DiceBear @dicebear/converter versions prior to 9.4.0

Discovery Timeline

  • 2026-03-18 - CVE-2026-29112 published to NVD
  • 2026-03-18 - Last updated in NVD database

Technical Details for CVE-2026-29112

Vulnerability Analysis

This vulnerability falls under CWE-770 (Allocation of Resources Without Limits or Throttling). The core issue resides in the ensureSize() function within the @dicebear/converter package. When processing SVG files for rasterization, the function trusted user-supplied width and height attributes without any bounds checking or sanitization.

When an attacker submits an SVG with maliciously large dimension values such as width="999999999", the converter attempts to allocate a canvas buffer proportional to these dimensions. For image formats like PNG, JPEG, WebP, and AVIF, this translates to allocating width × height × bytes-per-pixel of memory. With dimensions in the billions, this memory allocation can quickly exhaust available server resources, leading to application crashes or system-wide resource starvation.

Root Cause

The ensureSize() function directly consumed SVG attribute values to determine output canvas dimensions without implementing any validation, maximum bounds, or sanitization. The function assumed all input SVGs would contain reasonable dimension values, which is a dangerous assumption when processing untrusted input. This allowed arbitrary memory allocation controlled entirely by external input.

Attack Vector

The attack is network-accessible and requires no authentication or user interaction. An attacker can exploit this vulnerability by submitting a specially crafted SVG to any endpoint that processes user-supplied SVG files through the DiceBear converter. The attack payload is trivial to construct—simply including oversized dimension attributes in an otherwise valid SVG triggers the resource exhaustion condition.

typescript
// Patched code in packages/@dicebear/converter/src/core.ts
// Source: https://github.com/dicebear/dicebear/commit/42a59eac46a3c68598859e608ec45e578b27614a

   ToPng,
   ToWebp,
   ToAvif,
+  Options,
 } from './types.js';
 import { getMimeType } from './utils/mime-type.js';
 import { ensureSize } from './utils/svg.js';
 
-export const toPng: ToPng = (avatar: Avatar) => {
-  return toFormat(avatar, 'png');
+export const toPng: ToPng = (avatar: Avatar, options: Options = {}) => {
+  return toFormat(avatar, 'png', options);
 };
 
-export const toJpeg: ToJpeg = (avatar: Avatar) => {
-  return toFormat(avatar, 'jpeg');
+export const toJpeg: ToJpeg = (avatar: Avatar, options: Options = {}) => {
+  return toFormat(avatar, 'jpeg', options);
 };
 
-export const toWebp: ToWebp = (avatar: Avatar) => {
-  return toFormat(avatar, 'webp');
+export const toWebp: ToWebp = (avatar: Avatar, options: Options = {}) => {
+  return toFormat(avatar, 'webp', options);
 };
 
-export const toAvif: ToAvif = (avatar: Avatar) => {
-  return toFormat(avatar, 'avif');
+export const toAvif: ToAvif = (avatar: Avatar, options: Options = {}) => {
+  return toFormat(avatar, 'avif', options);

The patch introduces an Options parameter with a controlled size option, removing the reliance on untrusted SVG attributes:

typescript
// Patched ensureSize call in packages/@dicebear/converter/src/node/core.ts
// Source: https://github.com/dicebear/dicebear/commit/42a59eac46a3c68598859e608ec45e578b27614a

 ): Promise<Buffer> {
   const hasFonts = Array.isArray(options.fonts);
 
-  const { svg } = ensureSize(rawSvg);
+  const { svg } = ensureSize(rawSvg, options.size);
 
   let buffer = (
     await renderAsync(svg, {

Detection Methods for CVE-2026-29112

Indicators of Compromise

  • Unusual memory consumption spikes on servers running DiceBear converter
  • Application crashes or out-of-memory errors correlated with SVG processing requests
  • HTTP requests containing SVG payloads with abnormally large dimension attributes
  • Server performance degradation during avatar generation operations

Detection Strategies

  • Monitor Node.js process memory usage for sudden allocation spikes exceeding normal thresholds
  • Implement request logging to capture SVG payloads for forensic analysis
  • Deploy WAF rules to inspect incoming SVG content for oversized dimension attributes
  • Set up alerting on application container restarts or OOM killer events

Monitoring Recommendations

  • Configure memory usage alerts for services utilizing @dicebear/converter
  • Implement request rate limiting on avatar generation endpoints
  • Monitor for patterns of repeated requests that cause memory allocation failures
  • Track package versions in dependency manifests to identify vulnerable deployments

How to Mitigate CVE-2026-29112

Immediate Actions Required

  • Upgrade @dicebear/converter to version 9.4.0 or later immediately
  • Audit application code for any usage of toPng(), toJpeg(), toWebp(), or toAvif() functions with untrusted input
  • Implement input validation on SVG uploads before processing
  • Consider rate limiting avatar generation endpoints as an additional defense layer

Patch Information

The vulnerability is fixed in DiceBear 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) automatically fall back to the default safe value.

For detailed patch information, see the GitHub Security Advisory GHSA-v3r3-4qgc-vw66 and the commit 42a59eac46a3c68598859e608ec45e578b27614a.

Workarounds

  • 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
  • Implement SVG parsing middleware that rejects or rewrites dimension attributes exceeding reasonable bounds (e.g., 2048 pixels)
  • Deploy memory limits on Node.js processes using --max-old-space-size to prevent system-wide resource exhaustion
  • Consider isolating avatar generation in containerized environments with strict resource constraints
bash
# Configuration example - Set Node.js memory limits
node --max-old-space-size=512 app.js

# npm upgrade to patched version
npm install @dicebear/converter@9.4.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechDicebear

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-770
  • Technical References
  • GitHub Release Version 9.4.0
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-v3r3-4qgc-vw66
  • Related CVEs
  • CVE-2026-33418: DiceBear Avatar Library DOS Vulnerability

  • CVE-2026-33311: DiceBear Avatar Library XSS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English