CVE-2026-68921
DiceBear is an avatar library for designers and developers. Prior …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941fec4b59
- github.com/dicebear/dicebear/releases/tag/v9.4.3
- github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45
- nvd.nist.gov/vuln/detail/CVE-2026-68921
- github.com/advisories/GHSA-gcr2-9v8m-gq45
- nvd.nist.gov/vuln/detail/CVE-2026-68921
- cve.org/CVERecord?id=CVE-2026-68921
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.