CVE-2026-68921

Medium

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.

SeverityMedium
CVSS4.7
Exploit probability—
Product@dicebear/core
PublishedAug 20, 2026
First seenAug 20, 2026

How to fix

Update
  • @dicebear/core9.4.3 or later
  • @dicebear/initials9.4.3 or later

Affected products

ProductAffected versionsFixed in
@dicebear/corenpmv < 9.4.39.4.3
@dicebear/initialsnpmv < 9.4.39.4.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.