{"cve":"CVE-2026-68921","nvd":{"published":"2026-08-20T21:17:07.540","modified":"2026-10-26T10:10:00.140","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","score":4.7},"cwes":["CWE-79","CWE-184"],"references":["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"],"products":[],"source":"nvd","synced_at":"2026-10-26T10:28:23.151169805+00:00"},"epss":{"cve":"CVE-2026-68921","score":0.00286,"percentile":0.20911,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-gcr2-9v8m-gq45","url":"https://osv.dev/vulnerability/GHSA-gcr2-9v8m-gq45","summary":"DiceBear: SVG injection via the unescaped rotate option in @dicebear/core (and fontSize/fontWeight in @dicebear/initials)","modified":"2026-09-17T05:15:05.088434034Z","packages":[{"ecosystem":"npm","name":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","ranges":["<9.4.3"],"fixed":["9.4.3"]},{"ecosystem":"npm","name":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","ranges":["<9.4.3"],"fixed":["9.4.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}