CVE-2026-29112
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit crafted SVG with extreme dimensions
-
ExploitParser reads width/height attributes
-
ExecutionensureSize() allocates excessive memory
-
ImpactServer exhausts resources and crashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Server-side application must pass untrusted user-supplied SVGs to @dicebear/converter's toPng(), toJpeg(), toWebp(), or toAvif() functions without validating SVG dimensions beforehand. |
| Impact | The CVSS 7.5 score indicates high severity driven by network exploitability (AV:N), low complexity (AC:L), and no authentication requirements (PR:N), resulting in high availability impact (A:H). However, real-world risk is moderated by several factors: the vulnerability only affects server-side implementations that accept untrusted SVG inputs, requires no special privileges or user interaction, and results only in denial of service without data breach potential (C:N, I:N). Without EPSS data or KEV listing, and no public POC mentioned in references, this appears to be a theoretical risk primarily relevant for public-facing services accepting user-uploaded SVGs. Applications using the library only for self-generated DiceBear avatars face minimal practical risk. |
| Exploit ScenarioDerived | An attacker submits a specially crafted SVG file to a web service that uses @dicebear/converter for image processing, containing attributes like width='999999999' height='999999999'. When the server attempts to convert this SVG to PNG, the converter allocates gigabytes of memory for the canvas buffer, potentially exhausting server resources and causing service disruption. Given the network attack vector and low complexity, this attack could be easily automated to target multiple instances simultaneously. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 16, 2026
The @dicebear/converter library before version 9.4.0 fails to validate SVG dimension attributes, allowing attackers to trigger excessive memory allocation by providing crafted SVGs with extremely large width and height values. Server-side applications processing untrusted or user-supplied SVGs through the conversion functions (toPng, toJpeg, toWebp, toAvif) are vulnerable to denial of service attacks. A patch is available in version 9.4.0 and users should upgrade immediately if processing external SVG inputs.
Earlier versions of this analysis (1)
A denial-of-service vulnerability exists in the @dicebear/converter library where maliciously crafted SVG files with extremely large dimension attributes can force excessive memory allocation during image conversion. The vulnerability affects versions prior to 9.4.0 and allows remote attackers to crash or degrade server-side applications that process untrusted SVG inputs through the converter's rasterization functions (toPng, toJpeg, toWebp, toAvif). No active exploitation has been reported in KEV, and EPSS data is not available for this recently disclosed vulnerability.
RemediationAI
Upgrade @dicebear/converter to version 9.4.0 or later, which implements a complete fix by replacing attribute-based sizing with a controlled size option (default 512px, max 2048px). The patch is available at https://github.com/dicebear/dicebear/commit/42a59eac46a3c68598859e608ec45e578b27614a with full release notes at https://github.com/dicebear/dicebear/releases/tag/v9.4.0. For systems unable to upgrade immediately, implement input validation to sanitize width and height attributes in untrusted SVGs before conversion, rejecting values above reasonable thresholds. See the full advisory at https://github.com/dicebear/dicebear/security/advisories/GHSA-v3r3-4qgc-vw66.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The @dicebear/converter library (CPE: pkg:npm/@dicebear_converter) is used to convert SVG files to raster formats like PNG, JPEG, WebP, and AVIF. The vulnerability stems from improper resource allocation (CWE-770) where the ensureSize() function directly reads width and height attributes from input SVG files without validation. When these attributes contain extremely large values like width='999999999', the converter attempts to allocate a correspondingly massive canvas buffer in memory. This design flaw allows untrusted input to directly control server resource consumption, a classic uncontrolled resource consumption pattern.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Impact
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. 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.
Patches
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.
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.
Executive ViewAI
A denial-of-service vulnerability in the @dicebear/converter library (CVE-2026-29112) allows attackers to crash services by submitting malformed SVG files with extremely large dimensions. This affects organizations that accept user-supplied SVG inputs for avatar conversion, potentially disrupting service availability. A patch is available and should be deployed immediately.
Apply vendor patch. If immediate patching is not possible, implement input validation to reject SVG files with width or height attributes exceeding 2048 pixels, or disable SVG-to-image conversion features until the patch is applied.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-v3r3-4qgc-vw66
NVD
CVE.org
EPSS
VulDB
Exploit-DB