svgo: Improper Restriction of Recursive Entity References in DTDs
CVE-2026-29074 is a high-severity improper restriction of recursive entity references in dtds vulnerability in svgo from Svg, with a CVSS 3.1 base score of 7.5 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. Affected svgo versions: >= 2.1.0, < 2.8.1; >= 3.0.0, < 3.3.3; = 4.0.0. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.7% chance of exploitation within 30 days, higher than 54% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of svgo you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on github.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Svg | svgo | >= 2.1.0, < 2.8.1; >= 3.0.0, < 3.3.3; = 4.0.0 | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.5 for RHEL 9 | Not specified in the record | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.6 for RHEL 9 | Not specified in the record | Not stated |
| Red Hat | Red Hat Advanced Cluster Security 4.8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.5 | Not specified in the record | Not stated |
| Red Hat | Red Hat Ansible Automation Platform 2.6 | Not specified in the record | Not stated |
| Red Hat | Red Hat Developer Hub 1.8 | Not specified in the record | Not stated |
| Red Hat | Red Hat Developer Hub 1.9 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift AI 2.16 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift AI 2.25 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift AI 3.3 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Dev Spaces 3.28 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Service Mesh 2.6 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Service Mesh 3.0 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Service Mesh 3.1 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Service Mesh 3.2 | Not specified in the record | Not stated |
| Red Hat | Red Hat OpenShift Service Mesh 3.3 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.10 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.12 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.14 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.15 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.16 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.17 | Not specified in the record | Not stated |
| Red Hat | Red Hat Quay 3.18 | Not specified in the record | Not stated |
Version data comes from the organisation that assigned the CVE; 23 further products are omitted here. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- NoneNothing can be modified.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Scored by CNA (github.com).
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | CNA (github.com) |
| CVSS 3.1 | 7.5 | High | CNA |
Official description
SVGO, short for SVG Optimizer, is a Node.js library and command-line application for optimizing SVG files. From version 2.1.0 to before version 2.8.1, from version 3.0.0 to before version 3.3.3, and before version 4.0.1, SVGO accepts XML with custom entities, without guards against entity expansion or recursion. This can result in a small XML file (811 bytes) stalling the application and even crashing the Node.js process with JavaScript heap out of memory. This issue has been patched in versions 2.8.1, 3.3.3, and 4.0.1.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Restriction of Recursive Entity References in DTDs
The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.
How developers prevent this class of flaw
- If possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
- Before parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.
More Improper Restriction of Recursive Entity References in DTDs vulnerabilities (CWE-776)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: yes, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Advisories
- github.com/svg/svgo/security/advisories/GHSA-xpqw-6gx7-v673Exploit, Mitigation
Other references
- access.redhat.com/errata/RHSA-2026:11856
- access.redhat.com/errata/RHSA-2026:11916
- access.redhat.com/errata/RHSA-2026:13512
- access.redhat.com/errata/RHSA-2026:13545
- access.redhat.com/errata/RHSA-2026:13553
- access.redhat.com/errata/RHSA-2026:13826
- access.redhat.com/errata/RHSA-2026:19375
- access.redhat.com/errata/RHSA-2026:19712
- access.redhat.com/errata/RHSA-2026:21017
- access.redhat.com/errata/RHSA-2026:21772
- access.redhat.com/errata/RHSA-2026:22465
- access.redhat.com/errata/RHSA-2026:24977
- access.redhat.com/errata/RHSA-2026:48085
- access.redhat.com/errata/RHSA-2026:5807
- access.redhat.com/errata/RHSA-2026:6277
Other vulnerabilities in svgo
- 8.2 High severity
- 8.2 High severity
Recent Improper Restriction of Recursive Entity References in DTDs vulnerabilities
- 7.5 High severity
- 7.5 High severity
- 8.2 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
Spotted an error? Tell us.