CVE-2023-46035
Received Received - Intake

Entity Expansion Vulnerability in svg_optimizer Ruby Gem

Vulnerability report for CVE-2023-46035, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-09-14

Last updated on: 2026-09-14

Assigner: MITRE

Description

The svg_optimizer gem before 0.3.0 for Ruby performs entity expansion on untrusted documents.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-09-14
Last Modified
2026-09-14
Generated
2026-09-14
AI Q&A
2026-09-14
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Currently, no data is known.

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-776 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.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

The svg_optimizer gem before version 0.3.0 for Ruby has a vulnerability where it performs entity expansion on untrusted documents. This means it processes XML or HTML entities in files without proper validation, which can lead to security risks like XML External Entity (XXE) attacks if malicious entities are included in the input.

Detection Guidance

Check if the svg_optimizer gem version is below 0.3.0 using the command: gem list svg_optimizer. If installed, verify if Nokogiri's noent parse option is enabled by default in your Ruby environment.

Impact Analysis

If you use the svg_optimizer gem before version 0.3.0, an attacker could craft a malicious SVG or XML file that triggers entity expansion, potentially leading to unauthorized data access, denial of service, or other security breaches when processed by your application.

Mitigation Strategies

Update the svg_optimizer gem to version 0.3.0 or higher using: gem update svg_optimizer. If using Nokogiri, ensure the noent parse option is not enabled by default and only use trusted: true for trusted documents.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2023-46035. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart