Home / dicebear / dicebear / CVE-2026-33418
CVE-2026-33418: is it exploited, and which versions of dicebear are affected and fixed?
CVE-2026-33418 is an incorrect Regular Expression vulnerability in dicebear. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: @dicebear/converter before 9.4.2 (GitHub advisory GHSA-7j2x-32w6-p43p). Fixed in 9.4.2 (GitHub advisory GHSA-7j2x-32w6-p43p). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-33418?
@dicebear/converter ensureSize() Vulnerable to SVG Dimension Capping Bypass via XML Comment Injection
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 `<svg` 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.
From the CVE record by GitHub_M, last updated March 24, 2026, 15:11 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| dicebear | dicebear | < 9.4.2 |
As the CVE record by GitHub_M states it, last updated March 24, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | @dicebear/converter | < 9.4.2 | 9.4.2 | GHSA-7j2x-32w6-p43p |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 25, 2026. Summary: SVG Dimension Capping Bypass via XML Comment Injection in @dicebear/converter ensureSize().
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| dicebear | dicebear | before 9.4.2 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 10:37 UTC.
How severe is CVE-2026-33418?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-33418 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, March 24, 2026)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-185 Incorrect Regular Expression
Where are the vendor advisories and references?
- https://github.com/dicebear/dicebear/security/advisories/GHSA-7j2x-32w6-p43p x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- March 19, 2026
- Published
- March 24, 2026, 13:25 UTC
- CVE record updated
- March 24, 2026, 15:11 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 10:37 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect dicebear?
- Aug 20, 2026CVE-2026-68921 dicebear: cross-site scripting (XSS)
- Mar 24, 2026CVE-2026-33311 dicebear: cross-site scripting (XSS)
- Mar 18, 2026CVE-2026-29112 dicebear: denial of service (resources allocated without limits)
Questions about CVE-2026-33418
Is CVE-2026-33418 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of dicebear are affected by CVE-2026-33418?
@dicebear/converter before 9.4.2, per the GitHub advisory GHSA-7j2x-32w6-p43p. The tables above give every range the sources list.
Which version fixes CVE-2026-33418?
9.4.2, per the GitHub advisory GHSA-7j2x-32w6-p43p. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-33418?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-33418?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.