CVE-2026-33311

@dicebear/core and @dicebear/initials Vulnerable to SVG Injection via Unsanitized Options

MEDIUM
4.7
CVSS Score
Published: March 24, 2026 at 01:23 PM UTC
Updated: June 17, 2026 at 10:37 AM UTC
1 product affected across 1 vendorDicebear

Using dicebear by dicebear?

Get instant alerts when new vulnerabilities affect dicebear - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.7
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

DiceBear is an avatar library for designers and developers. Starting in version 5.0.0 and prior to versions 5.4.4, 6.1.4, 7.1.4, 8.0.3, and 9.4.1, SVG attribute values derived from user-supplied options (`backgroundColor`, `fontFamily`, `textColor`) were not XML-escaped before interpolation into SVG output. This could allow Cross-Site Scripting (XSS) when applications pass untrusted input to `createAvatar()` and serve the resulting SVG inline or with `Content-Type: image/svg+xml`. Starting in versions 5.4.4, 6.1.4, 7.1.4, 8.0.3, and 9.4.1, all affected SVG attribute values are properly escaped using XML entity encoding. Users should upgrade to the listed patched versions. Some mitigating factors limit vulnerability. Applications that validate input against the library's JSON Schema before passing it to `createAvatar()` are not affected. The DiceBear CLI validates input via AJV and was not vulnerable. Exploitation requires that an application passes untrusted, unvalidated external input directly as option values.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 5.4.4v < 6.1.4v < 7.1.4v < 8.0.3v < 9.4.15.0.0 ≤ v < 5.4.46.0.0 ≤ v < 6.1.47.0.0 ≤ v < 7.1.48.0.0 ≤ v < 8.0.39.0.0 ≤ v < 9.4.1
Affected range stops below 5.4.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 6.1.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 7.1.4, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.0.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 9.4.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_CONFIRMVendor Advisory
Source: cverecord
https://github.com/dicebear/dicebear/security/advisories/GHSA-mr9r-mww3-v6gv

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

4.7MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card