๐Ÿ” CVE Alert

CVE-2026-68921

MEDIUM 4.7

DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)

CVSS Score
4.7
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79 CWE-184
Vendor dicebear
Product dicebear
Published Aug 20, 2026
Stay Ahead of the Next One

Get instant alerts for dicebear dicebear

Be the first to know when new medium vulnerabilities affecting dicebear dicebear are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

dicebear / dicebear
< 9.4.3

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45 github.com: https://github.com/dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941fec4b59 github.com: https://github.com/dicebear/dicebear/releases/tag/v9.4.3