CVE-2026-68921
Reported by GitHub_M · Published August 20, 2026
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| dicebear | dicebear | < 9.4.3 |
| dicebear | core | 0 |
| chainguard | librechat | 0 |
| dicebear | initials | 0 |
| dicebear | dicebear | 0 |
Timeline
- Aug 20, 2026 CVE Published
- Aug 21, 2026 Coalition ESS Score
- Aug 24, 2026 EPSS Score
- Sep 3, 2026 Security Advisory
- Sep 5, 2026 EPSS Score
- Sep 12, 2026 EPSS Score
- Sep 17, 2026 EPSS Score
- Sep 18, 2026 EPSS Score
- Sep 24, 2026 EPSS Score
- Sep 26, 2026 EPSS Score
- Sep 30, 2026 EPSS Score
- Oct 2, 2026 EPSS Score
References
- https://github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45 x_refsource_CONFIRM
- https://github.com/dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941fec4b59 x_refsource_MISC
- https://github.com/dicebear/dicebear/releases/tag/v9.4.3 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-68921 advisory
- https://github.com/advisories/GHSA-gcr2-9v8m-gq45 advisory