CVE-2026-68921

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.
Configurations

No configuration.

History

26 Oct 2026, 10:10

Type Values Removed Values Added
Summary
  • (es) 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.

Information

Published : 2026-08-20 21:17

Updated : 2026-10-26 10:10


NVD link : CVE-2026-68921

Mitre link : CVE-2026-68921

CVE.ORG link : CVE-2026-68921


JSON object : View

Products Affected

No product.

CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

CWE-184

Incomplete List of Disallowed Inputs