{"answers":{"affected":"20 open source packages ship an affected version, including @dicebear/core and @dicebear/initials. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33311 in the wild and no public exploit code.","fix":"Upgrade @dicebear/core to a fixed version for your release line: 5.4.4, 6.1.4, 7.1.4 or 8.0.3.","what":"CVE-2026-33311 is a medium-severity cross-site scripting vulnerability in dicebear, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-33311 and fix it if it is affected.\n\nWhat it is: CVE-2026-33311 is a medium-severity cross-site scripting vulnerability in dicebear, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-33311 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @dicebear/core (npm): affected from 5.0.0; fixed in 5.4.4\n- @dicebear/core (npm): affected from 5.0.0; fixed in 5.4.4\n- @dicebear/core (npm): affected from 6.0.0; fixed in 6.1.4\n- @dicebear/core (npm): affected from 6.0.0; fixed in 6.1.4\n- @dicebear/core (npm): affected from 7.0.0; fixed in 7.1.4\n- @dicebear/core (npm): affected from 7.0.0; fixed in 7.1.4\n- @dicebear/core (npm): affected from 8.0.0; fixed in 8.0.3\n- @dicebear/core (npm): affected from 8.0.0; fixed in 8.0.3\n- @dicebear/core (npm): affected from 9.0.0; fixed in 9.4.1\n- @dicebear/core (npm): affected from 9.0.0; fixed in 9.4.1\n- @dicebear/initials (npm): affected from 5.0.0; fixed in 5.4.4\n- @dicebear/initials (npm): affected from 5.0.0; fixed in 5.4.4\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33311/ (Markdown: https://insights.sbomify.com/CVE-2026-33311/index.md)","id":"CVE-2026-33311","markdown":"https://insights.sbomify.com/CVE-2026-33311/index.md","name":"CVE-2026-33311","record":{"aliases":["GHSA-mr9r-mww3-v6gv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript avatar library","requires_auth":"none","summary":"Attackers can inject malicious scripts via unsanitized SVG options in DiceBear, leading to XSS if applications serve generated SVGs inline.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dicebear","vendor":"dicebear"}],"cvss":{"score":4.7,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"DiceBear is an avatar library for designers and developers. Starting in version 5.0.0 and prior to versions 5.4.4, 6.1.4, 7.1.4, 8.0.3, and 9.4.1, 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`. Starting in versions 5.4.4, 6.1.4, 7.1.4, 8.0.3, and 9.4.1, all affected SVG attribute values are properly escaped using XML entity encoding. Users should upgrade to the listed patched versions. Some mitigating factors limit vulnerability. Applications that validate input against the library's JSON Schema before passing it to `createAvatar()` are not affected. The DiceBear CLI validates input via AJV and was not vulnerable. Exploitation requires that an application passes untrusted, unvalidated external input directly as option values.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"@dicebear/core and @dicebear/initials Vulnerable to SVG Injection via Unsanitized Options","id":"CVE-2026-33311","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":20,"n_references":1,"next":{"headline":"Read-only Vikunja users can delete project background images via broken object-level authorization","id":"CVE-2026-33312"},"packages":[{"ecosystem":"npm","fixed":["5.4.4"],"introduced":["5.0.0"],"last_affected":[],"package":"@dicebear/core","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["5.4.4"],"introduced":["5.0.0"],"last_affected":[],"package":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["6.1.4"],"introduced":["6.0.0"],"last_affected":[],"package":"@dicebear/core","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["6.1.4"],"introduced":["6.0.0"],"last_affected":[],"package":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@dicebear/core","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["8.0.3"],"introduced":["8.0.0"],"last_affected":[],"package":"@dicebear/core","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["8.0.3"],"introduced":["8.0.0"],"last_affected":[],"package":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"@dicebear/core","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"@dicebear/core","purl":"pkg:npm/%40dicebear/core","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["5.4.4"],"introduced":["5.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["5.4.4"],"introduced":["5.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["6.1.4"],"introduced":["6.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["6.1.4"],"introduced":["6.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["7.1.4"],"introduced":["7.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["8.0.3"],"introduced":["8.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["8.0.3"],"introduced":["8.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":null,"source":"GHSA-mr9r-mww3-v6gv"},{"ecosystem":"npm","fixed":["9.4.1"],"introduced":["9.0.0"],"last_affected":[],"package":"@dicebear/initials","purl":"pkg:npm/%40dicebear/initials","source":"GHSA-mr9r-mww3-v6gv"}],"prev":{"headline":"Intake has a Command Injection via shell() Expansion in Parameter Defaults","id":"CVE-2026-33310"},"products":["dicebear"],"published":"2026-03-24","related":[{"cvss_score":7.5,"headline":"@dicebear/converter ensureSize() Vulnerable to SVG Dimension Capping Bypass via XML Comment Injection","id":"CVE-2026-33418","kev_date_added":null,"published":"2026-03-24"},{"cvss_score":7.5,"headline":"@dicebear/converter vulnerable to ncontrolled memory allocation via crafted SVG dimensions","id":"CVE-2026-29112","kev_date_added":null,"published":"2026-03-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-26","vendors":["dicebear"]},"summary":"Attackers can inject malicious scripts via unsanitized SVG options in DiceBear, leading to XSS if applications serve generated SVGs inline.","url":"https://insights.sbomify.com/CVE-2026-33311/"}