Read the docs
TI-2026-48460 Aliases CVE-2026-68921GHSA-gcr2-9v8m-gq45

Cross-site scripting in dicebear

Priority LOW 21CWE-184Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
Cross-site scripting
Confidentiality · integrity · availability
Low · Low · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00286 21st percentileScored 2026-11-07
Fix Fixed dicebear (dicebear): 9.4.3@dicebear/core (npm): 9.4.3+1 more product

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
dicebeardicebearbefore 9.4.39.4.3Patch availableCNA
—@dicebear/core (npm)before 9.4.39.4.3Patch availableGHSA-gcr2-9v8m-gq45
—@dicebear/initials (npm)before 9.4.39.4.3Patch availableGHSA-gcr2-9v8m-gq45
  • dicebear Vendordicebear Affected before 9.4.3 Fixed in 9.4.3 Patch available CNA
  • @dicebear/core (npm) Vendor— Affected before 9.4.3 Fixed in 9.4.3 Patch available GHSA-gcr2-9v8m-gq45
  • @dicebear/initials (npm) Vendor— Affected before 9.4.3 Fixed in 9.4.3 Patch available GHSA-gcr2-9v8m-gq45

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:dicebear:dicebear:*:*:*:*:*:*:*:*——dicebear
  • cpe:2.3:a:dicebear:dicebear:*:*:*:*:*:*:*:* Versions — — ·dicebear

Remediation

  • Fix · CNA dicebear (dicebear) Fixed in 9.4.3
  • Fix · GHSA-gcr2-9v8m-gq45 @dicebear/core (npm) Fixed in 9.4.3 Advisory →
  • Fix · GHSA-gcr2-9v8m-gq45 @dicebear/initials (npm) Fixed in 9.4.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-68921
  2. 2026-10-03 Alias added: GHSA-gcr2-9v8m-gq45

References

  • TI-2026-25815 @dicebear/converter ensureSize() Vulnerable to SVG Dimension Capping Bypass via XML Comment Injection CVSS 3.1HIGH 7.5
  • TI-2026-23253 @dicebear/converter vulnerable to ncontrolled memory allocation via crafted SVG dimensions CVSS 3.1HIGH 7.5
  • TI-2026-25722 @dicebear/core and @dicebear/initials Vulnerable to SVG Injection via Unsanitized Options CVSS 3.1MEDIUM 4.7

Sources