4.7
MEDIUM CVSS 3.1
CVE-2026-68921
DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)
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.

INFO

Published Date :

Aug. 20, 2026, 9:17 p.m.

Last Modified :

Oct. 26, 2026, 10:10 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-68921 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Dicebear dicebear
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM MITRE-CVE
Solution
Update the DiceBear avatar library to version 9.4.3 to fix SVG injection vulnerabilities.
  • Update @dicebear/core to version 9.4.3.
  • Update @dicebear/initials to version 9.4.3.
  • Ensure all user-provided input is properly sanitized.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-68921.

URL Resource
https://github.com/dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941fec4b59
https://github.com/dicebear/dicebear/releases/tag/v9.4.3
https://github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-68921 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-68921 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-68921 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 26, 2026

    Action Type Old Value New Value
    Added Translation Title: dicebear, Description: DiceBear es una biblioteca de avatares para diseñadores y desarrolladores. Antes de la versión 9.4.3, @dicebear/core interpola la opción rotate en un atributo SVG transform sin escape XML en addRotate en packages/@dicebear/core/src/utils/svg.ts, mientras que @dicebear/initials emite de manera similar fontSize y fontWeight sin escape en packages/@dicebear/initials/src/index.ts. Los llamadores en tiempo de ejecución pueden pasar cadenas de texto a pesar de los tipos numéricos de TypeScript, salirse de los atributos e inyectar marcado SVG arbitrario. Se puede ejecutar script en el origen de la página cuando el avatar generado se inserta en línea o se sirve como image/svg+xml y se abre directamente, aunque la explotación requiere que una aplicación pase valores no confiables a estas opciones normalmente controladas por el desarrollador. Este problema está solucionado en las versiones 9.4.3 de @dicebear/core y @dicebear/initials.
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 21, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-68921', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-21T11:32:11.648752Z'}
  • New CVE Received by [email protected]

    Aug. 20, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'dicebear', 'product': 'dicebear', 'versions': [{'status': 'affected', 'version': '< 9.4.3'}]}]
    Added 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.
    Added CVSS V3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
    Added CWE CWE-79
    Added CWE CWE-184
    Added Reference https://github.com/dicebear/dicebear/commit/922946d738c4e77ab6c412e27ede75941fec4b59
    Added Reference https://github.com/dicebear/dicebear/releases/tag/v9.4.3
    Added Reference https://github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.