BreachSpiderVerified, not vibes

CVE-2021-28965 in Fedoraproject Fedora and 2 more products

High 7.5

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.

Affects 3 products from 2 vendors. Facts below cite their sources.

CVSS 3.17.5
EPSS4.4%
EPSS percentile92th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 34
Ruby-Lang Ruby < 2.6.7 ≥ 2.7.0, < 2.7.3 ≥ 3.0.0, < 3.0.1
Ruby-Lang Rexml < 3.2.5

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-28965
BreachSpider IDBS-2021-GLOBAL-262959-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2021-04-21
Last modified2026-06-17
SourceNVD

Analysis AI-written, not human-reviewed

The REXML gem in Ruby versions prior to 2.6.7, 2.7.3, and 3.0.1 is vulnerable to XML round-trip issues, which can lead to incorrect document production after parsing and serializing.

An attacker can exploit this vulnerability by providing specially crafted XML input to the REXML parser, potentially leading to data corruption or other unintended behavior in applications that rely on the integrity of the XML data.

Questions

What is CVE-2021-28965?

The REXML gem in Ruby versions prior to 2.6.7, 2.7.3, and 3.0.1 is vulnerable to XML round-trip issues, which can lead to incorrect document production after parsing and serializing.

What is the CVSS score for CVE-2021-28965?

CVE-2021-28965 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 4.4%.

Is CVE-2021-28965 actively exploited?

No confirmed active exploitation of CVE-2021-28965 as of 2026-09-25.

How do I remediate CVE-2021-28965?

Priority: MEDIUM. Advisory: https://www.ruby-lang.org/en/news/2021/04/05/xml-round-trip-vulnerability-in-rexml-cve-2021-28965/ PSIRT: [email protected]

What systems are affected by CVE-2021-28965?

CVE-2021-28965 affects Fedoraproject Fedora; Ruby-Lang Ruby, Rexml.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.