SVG attribute values derived from user-supplied options (backgroundColor, fontFamily, textColor) were not XML-escaped before interpolation into SVG output. This could allow Cross-Site Scripting (XSS) when applications pass untrusted input to createAvatar() and serve the resulting SVG inline or with Content-Type: image/svg+xml.
@dicebear/core — backgroundColor option values interpolated into SVG attributes without escaping (affects solid and gradientLinear background types)@dicebear/initials — fontFamily and textColor option values interpolated into SVG attributes without escapingAll affected SVG attribute values are now properly escaped using XML entity encoding. Users should upgrade to the listed patched versions.
createAvatar() are not affected5.4.46.1.47.1.48.0.39.4.15.4.46.1.47.1.48.0.39.4.1Exploitability
AV:NAC:HPR:NUI:RScope
S:CImpact
C:LI:LA:N4.7/CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N