{"answers":{"affected":"2 open source packages ship an affected version, including @dicebear/converter. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33418 in the wild and no public exploit code.","fix":"Upgrade @dicebear/converter to 9.4.2 or later.","what":"CVE-2026-33418 is a high-severity denial of service vulnerability in dicebear, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-33418 and fix it if it is affected.\n\nWhat it is: CVE-2026-33418 is a high-severity denial of service vulnerability in dicebear, published on 24 Mar 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-33418 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- @dicebear/converter (npm): affected all versions; fixed in 9.4.2\n- @dicebear/converter (npm): affected all versions; fixed in 9.4.2\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-33418/ (Markdown: https://insights.sbomify.com/CVE-2026-33418/index.md)","id":"CVE-2026-33418","markdown":"https://insights.sbomify.com/CVE-2026-33418/index.md","name":"CVE-2026-33418","record":{"aliases":["GHSA-7j2x-32w6-p43p"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript avatar library","requires_auth":"none","summary":"Attackers can bypass SVG dimension limits to cause out-of-memory crashes in applications using the DiceBear avatar library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"dicebear","vendor":"dicebear"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"}],"description":"DiceBear is an avatar library for designers and developers. Prior to version 9.4.2, the `ensureSize()` function in `@dicebear/converter` used a regex-based approach to rewrite SVG `width`/`height` attributes, capping them at 2048px to prevent denial of service. This size capping could be bypassed by crafting SVG input that causes the regex to match a non-functional occurrence of `\u003csvg` before the actual SVG root element. When the SVG is subsequently rendered via `@resvg/resvg-js` on the Node.js code path, it renders at the attacker-specified dimensions, potentially causing out-of-memory crashes. In version 9.4.2, the regex-based approach has been replaced with XML-aware processing using `fast-xml-parser` to correctly identify and modify the SVG root element's attributes. Additionally, a `fitTo` constraint has been added to the `renderAsync` call as defense-in-depth, ensuring the rendered output is always bounded regardless of SVG content.","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/converter ensureSize() Vulnerable to SVG Dimension Capping Bypass via XML Comment Injection","id":"CVE-2026-33418","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"MinIO: LDAP login brute-force via user enumeration and missing rate limit","id":"CVE-2026-33419"},"packages":[{"ecosystem":"npm","fixed":["9.4.2"],"introduced":["0"],"last_affected":[],"package":"@dicebear/converter","purl":null,"source":"GHSA-7j2x-32w6-p43p"},{"ecosystem":"npm","fixed":["9.4.2"],"introduced":["0"],"last_affected":[],"package":"@dicebear/converter","purl":"pkg:npm/%40dicebear/converter","source":"GHSA-7j2x-32w6-p43p"}],"prev":{"headline":"Wallos: Password Reset Tokens Never Expire","id":"CVE-2026-33417"},"products":["dicebear"],"published":"2026-03-24","related":[{"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"},{"cvss_score":4.7,"headline":"@dicebear/core and @dicebear/initials Vulnerable to SVG Injection via Unsanitized Options","id":"CVE-2026-33311","kev_date_added":null,"published":"2026-03-24"}],"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":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-03-24","vendors":["dicebear"]},"summary":"Attackers can bypass SVG dimension limits to cause out-of-memory crashes in applications using the DiceBear avatar library.","url":"https://insights.sbomify.com/CVE-2026-33418/"}