PatchSiren

dicebear CVE debriefs

These pages are published after PatchSiren validates generated defensive summaries against stored public CVE and source evidence.

MEDIUM dicebear CVE published 2026-08-20

CVE-2026-68921

The @dicebear/core and @dicebear/initials libraries prior to version 9.4.3 are vulnerable to SVG injection attacks due to a lack of XML escaping in the addRotate function of @dicebear/core and the emission of fontSize and fontWeight without escaping in @dicebear/initials. This issue allows attackers to inject arbitrary SVG markup, potentially leading to script execution in the page origin when the generated avatar is inserted inline or served as image/svg+xml and opened directly. The vulnerability has a CVSS score of 4.7 and is classified as MEDIUM. Developers should prioritize updating to @dicebear/core and @dicebear/initials version 9.4.3 or later to address the SVG injection vulnerability. Additionally, applications that pass untrusted values into these normally developer-controlled options are particularly at risk. Operators, platforms, vulnerability-management teams, and security teams should review the affected product deployments and take necessary actions to prevent exploitation. Evidence from the NVD and CVE.org indicates that @dicebear/core and @dicebear/initials versions prior to 9.4.3 are vulnerable to SVG injection attacks. The issue is fixed in version 9.4.3. Further review of the source code and affected product deployments is necessary to determine the full scope of the vulnerability. Defenders should verify that their applications do not pass untrusted values into these normally developer-controlled options and take steps to mitigate the vulnerability.