Skip to main content

CVE-2026-29112

HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-03-16 https://github.com/dicebear/dicebear GHSA-v3r3-4qgc-vw66
7.5
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted SVG with extreme dimensions
  2. Exploit
    Parser reads width/height attributes
  3. Execution
    ensureSize() allocates excessive memory
  4. Impact
    Server 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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)
v1 Mar 16, 2026 - 17:20 CVSS 7.5

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

npm @dicebear/converter fix: 9.4.0

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

GitHub Advisory PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Mar 16, 2026 - 17:20 nvd
Patch available
CVE Published
Mar 16, 2026 - 16:15 nvd
HIGH 7.5

DescriptionGitHub 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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 89% exploitable
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)GitHub Advisory

pkg:npm/@dicebear_converter

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy