The REXML gem before 3.2.5 in Ruby before 2.6.7, 2.7.x before 2.7.3, and 3.x before 3.0.1 does not properly address XML round-trip issues. An incorrect document can be produced after parsing and serializing.
{
"sources": [
{
"modified": "2026-06-17T03:47:05.853Z",
"id": "CVE-2021-28965",
"database_specific": {
"status": "Modified"
},
"imported": "2026-08-12T15:35:15.174Z",
"published": "2021-04-21T07:15:07.677Z",
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-28965",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-28965"
}
],
"license": "CC-BY-4.0"
}