CVE-2026-33311 | DiceBear up to 5.4.3/6.1.3/7.1.3/8.0.2/9.4.0 createAvatar cross site scripting
VulDBArchived Mar 24, 2026✓ Full text saved
A vulnerability classified as problematic has been found in DiceBear up to 5.4.3/6.1.3/7.1.3/8.0.2/9.4.0 . Affected by this issue is the function createAvatar . This manipulation causes cross site scripting. This vulnerability is handled as CVE-2026-33311 . The attack can be initiated remotely. There is not any exploit available. It is recommended to upgrade the affected component.
Full text archived locally
✦ AI Summary· Claude Sonnet
VDB-352772 · CVE-2026-33311 · GCVE-0-2026-33311
DICEBEAR UP TO 5.4.3/6.1.3/7.1.3/8.0.2/9.4.0 CREATEAVATAR CROSS SITE SCRIPTING
HISTORYDIFFRELATEJSONXMLCTI
CVSS Meta Temp Score Current Exploit Price (≈) CTI Interest Score
3.8 $0-$5k 1.56+
Summaryinfo
A vulnerability classified as problematic was found in DiceBear up to 5.4.3/6.1.3/7.1.3/8.0.2/9.4.0. This affects the function createAvatar. Such manipulation leads to cross site scripting. This vulnerability is uniquely identified as CVE-2026-33311. The attack can be launched remotely. No exploit exists. Upgrading the affected component is advised.
Detailsinfo
A vulnerability was found in DiceBear up to 5.4.3/6.1.3/7.1.3/8.0.2/9.4.0. It has been rated as problematic. Affected by this issue is the function createAvatar. The manipulation with an unknown input leads to a cross site scripting vulnerability. Using CWE to declare the problem leads to CWE-79. The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. Impacted is integrity. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is handled as CVE-2026-33311 since 03/18/2026. The exploitation is known to be difficult. The attack may be launched remotely. No form of authentication is required for exploitation. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1059.007.
Upgrading to version 5.4.4, 6.1.4, 7.1.4, 8.0.3 or 9.4.1 eliminates this vulnerability.
Productinfo
Name
DiceBear
Version
5.4.0
5.4.1
5.4.2
5.4.3
6.1.0
6.1.1
6.1.2
6.1.3
7.1.0
7.1.1
7.1.2
7.1.3
8.0.0
8.0.1
8.0.2
9.0
9.1
9.2
9.3
9.4.0
Website
Product: https://github.com/dicebear/dicebear/
CPE 2.3info
🔒
🔒
🔒
CPE 2.2info
🔒
🔒
🔒
CVSSv4info
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv3info
VulDB Meta Base Score: 3.9
VulDB Meta Temp Score: 3.8
VulDB Base Score: 3.1
VulDB Temp Score: 3.0
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 4.7
CNA Vector (GitHub_M): 🔒
CVSSv2info
Vector Complexity Authentication Confidentiality Integrity Availability
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
Unlock Unlock Unlock Unlock Unlock Unlock
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploitinginfo
Class: Cross site scripting
CWE: CWE-79 / CWE-94 / CWE-74
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
Price Prediction: 🔍
Current Price Estimation: 🔒
0-Day Unlock Unlock Unlock Unlock
Today Unlock Unlock Unlock Unlock
Threat Intelligenceinfo
Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍
Countermeasuresinfo
Recommended: Upgrade
Status: 🔍
0-Day Time: 🔒
Upgrade: DiceBear 5.4.4/6.1.4/7.1.4/8.0.3/9.4.1
Timelineinfo
03/18/2026 CVE reserved
03/24/2026 +6 days Advisory disclosed
03/24/2026 +0 days VulDB entry created
03/24/2026 +0 days VulDB entry last update
Sourcesinfo
Product: github.com
Advisory: github.com
Status: Confirmed
CVE: CVE-2026-33311 (🔒)
GCVE (CVE): GCVE-0-2026-33311
GCVE (VulDB): GCVE-100-352772
Entryinfo
Created: 03/24/2026 14:44
Changes: 03/24/2026 14:44 (63)
Complete: 🔍
Cache ID: 99:36F:101
Discussion
No comments yet. Languages: en.
Please log in to comment.
◂ PreviousOverviewNext ▸