{"vulnerability": "cve-2026-68921", "sightings": [{"uuid": "0b58df1b-df9e-4d90-a2d0-fcce6e20ae38", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2026-68921", "type": "seen", "source": "https://gist.github.com/alon710/04fe710f98161277ec0196216da2a5ca", "content": "# CVE-2026-68921: CVE-2026-68921: Cross-Site Scripting via SVG Attribute Injection in DiceBear\n\n&gt; **CVSS Score:** 4.7\n&gt; **Published:** 2026-09-02\n&gt; **Full Report:** https://cvereports.com/reports/CVE-2026-68921\n\n## Summary\nCVE-2026-68921 is a Cross-Site Scripting (XSS) vulnerability affecting the `@dicebear/core` and `@dicebear/initials` packages. The flaw stems from a disconnect between compile-time TypeScript type definitions and runtime JavaScript execution. Unvalidated numeric-typed options can receive raw string payloads at runtime, allowing attackers to escape XML attribute boundaries and inject malicious vector markup, executing arbitrary script code within the user's web origin.\n\n## TL;DR\nA runtime type bypass in `@dicebear/core` and `@dicebear/initials` allows unescaped string payloads to be processed in place of numeric parameters, causing structural breakout in the generated SVG and enabling stored cross-site scripting.\n\n## Exploit Status: POC\n\n## Technical Details\n\n- **CWE ID**: CWE-79\n- **Attack Vector**: Network\n- **CVSS v3.1 Score**: 4.7 (Medium)\n- **EPSS Score**: 0.00222\n- **Impact**: Cross-Site Scripting (XSS)\n- **Exploit Status**: Proof-of-Concept (PoC)\n- **CISA KEV Status**: Not Listed\n\n## Affected Systems\n\n- @dicebear/core\n- @dicebear/initials\n- **@dicebear/core**: &lt; 9.4.3 (Fixed in: `9.4.3`)\n- **@dicebear/initials**: &lt; 9.4.3 (Fixed in: `9.4.3`)\n\n## Mitigation\n\n- Upgrade @dicebear/core and @dicebear/initials to version 9.4.3 or above.\n- Enforce strict runtime schema validation of all API inputs.\n- Apply rigid Content Security Policy (CSP) rules.\n- Serve SVGs with protective security headers.\n\n**Remediation Steps:**\n1. Identify any references to @dicebear/core or @dicebear/initials in package.json.\n2. Run `npm install @dicebear/core@9.4.3 @dicebear/initials@9.4.3` or equivalent yarn/pnpm commands.\n3. Audit code where request parameters (such as query parameters or POST bodies) are passed directly to `createAvatar`.\n4. Implement schema validation using tools like Zod or AJV to ensure `rotate`, `fontSize`, and `fontWeight` are validated as strict numbers before processing.\n\n## References\n\n- [NVD - CVE-2026-68921 Detail](https://nvd.nist.gov/vuln/detail/CVE-2026-68921)\n- [DiceBear Security Advisory GHSA-gcr2-9v8m-gq45](https://github.com/dicebear/dicebear/security/advisories/GHSA-gcr2-9v8m-gq45)\n- [DiceBear v9.4.3 Release Notes](https://github.com/dicebear/dicebear/releases/tag/v9.4.3)\n- [CVE.org Record](https://www.cve.org/CVERecord?id=CVE-2026-68921)\n\n\n---\n*Generated by [CVEReports](https://cvereports.com/reports/CVE-2026-68921) - Automated Vulnerability Intelligence*", "creation_timestamp": "2026-09-03T09:06:28.777410Z"}]}