SEPTEMBER 18, 2026
Live Feed
Back to database
Case File

CVE-2026-68921

MEDIUM · CVSS 4.7 EPSS 0.22% Public Exploit

Source: NVD + CISA KEV + EPSS · Published 2026-08-20 · Last synced 2026-09-18

CyberRota Analysis

AI-Generated

The DiceBear avatar library versions prior to 9.4.3 are vulnerable due to improper handling of the rotate, fontSize, and fontWeight options, allowing attackers to inject arbitrary SVG markup through untrusted input. This can lead to the execution of malicious scripts in the page origin when the generated avatars are rendered inline or served as SVG images. Developers using this library should prioritize upgrading to version 9.4.3 to mitigate the risk of potential XSS attacks.

Public Exploit Signal

A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.

Detected Signals
exploit

Note: these links are listed for security research and verification purposes only.

CVE
CVE-2026-68921
Severity
MEDIUM
CVSS
4.7
EPSS
0.22%

Original NVD Description

DiceBear is an avatar library for designers and developers. Prior to 9.4.3, @dicebear/core interpolates the rotate option into an SVG transform attribute without XML escaping in addRotate in packages/@dicebear/core/src/utils/svg.ts, while @dicebear/initials similarly emits fontSize and fontWeight without escaping in packages/@dicebear/initials/src/index.ts. Runtime callers can pass strings despite the numeric TypeScript types, break out of the attributes, and inject arbitrary SVG markup. Script can execute in the page origin when the generated avatar is inserted inline or served as image/svg+xml and opened directly, although exploitation requires an application to pass untrusted values into these normally developer-controlled options. This issue is fixed in @dicebear/core and @dicebear/initials version 9.4.3.