REXML has DoS condition when parsing malformed XML file
Description
Published by the National Vulnerability Database
Sep 17, 2025
Published to the GitHub Advisory Database
Sep 17, 2025
Reviewed
Sep 17, 2025
Last updated
Sep 17, 2025
Impact
The REXML gems from 3.3.3 to 3.4.1 have a DoS vulnerability when parsing XML containing multiple XML declarations.
If you need to parse untrusted XMLs, you may be impacted to these vulnerabilities.
Patches
REXML gems 3.4.2 or later include the patches to fix these vulnerabilities.
Workarounds
Don't parse untrusted XMLs.
References
References