Skip to content
Applications

CVE-2022-50998

HIGH
High
EPSS 0.35%Patch availableAug 26, 2026

Nokogiri bundled libxml2 flaws allow DoS or memory corruption via crafted XML.

common questions

Is CVE-2022-50998 being exploited?

Not confirmed. CVE-2022-50998 does not appear in CISA's Known Exploited Vulnerabilities catalog, which records only exploitation that has been observed and reported publicly. That is evidence of absence of a report, not evidence the flaw is unattacked. EPSS currently estimates a 0.35% probability of exploitation in the next 30 days.

How severe is CVE-2022-50998?

CVE-2022-50998 is rated High. Severity describes how bad exploitation would be, not how likely it is: pair it with exploitation evidence before deciding what to patch first.

Is there a patch for CVE-2022-50998?

Yes. A fix has been recorded for CVE-2022-50998. The vendor advisory is the authority on the exact fixed version — apply it from there rather than from a summary.

What does CVE-2022-50998 affect?

CVE-2022-50998 affects Nokogiri (CRuby) versions < 1.13.9 with packaged libxml2 v2.9.14, Applications using Nokogiri with bundled libxml2, libxml2 v2.9.14 (as bundled). Confirm the exact affected versions against the vendor advisory before deciding you are exposed.

What should I do about CVE-2022-50998?

Upgrade Nokogiri to >= 1.13.9 or rebuild with libxml2 v2.10.3

Exploitation status reflects CISA's KEV catalog as we last synced it. Check the catalog directly.

executive summary
technical analysis
affected
Nokogiri (CRuby) versions < 1.13.9 with packaged libxml2 v2.9.14Applications using Nokogiri with bundled libxml2libxml2 v2.9.14 (as bundled)
impact

Processing crafted XML can trigger denial-of-service or memory corruption, causing crashes and potential undefined behavior in Ruby apps.

action required

Patch when possible

how to fix
Remediation steps are tailored for users whose stack is affected. Add this technology to your stack to see the fix checklist.
references
get alerted

Track only the vulnerabilities that affect your infrastructure.

start for free