Vulnerability

CVE-2026-68921

mediumCVSS 3.1 4.7Published 20 Aug 2026

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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.

Affected products

The NVD has not attached product data to this record yet; the description names what is affected.

Weakness type

References

  • github.com /dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941…
  • github.com /dicebear/dicebear/releases/tag/v9.4.3
  • github.com /dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning