Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2021-3517

HIGH 8.6EPSS 97%

Nokogiri contains libxml Out-of-bounds Write vulnerability

Also known as GHSA-jw9f-hh49-cvp9

Mitigation

  • Upgrade nokogiri to 1.11.4 or later.

Who should check

  • Projects that depend on RubyGems package nokogiri (< 1.11.4)
  • Anyone running libxml2 libxml2 2.9.11

Vulnerability facts

Affected
nokogiri < 1.11.4
Fixed in
1.11.4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: High
EPSS
12.83% chance of exploitation in 30 days (percentile 97, 2026-11-26)
CWE
CWE-787
Published
Modified

Description

There is a flaw in the xml entity encoding functionality of libxml2 in versions before 2.9.11. An attacker who is able to supply a crafted file to be processed by an application linked with the affected functionality of libxml2 could trigger an out-of-bounds read. The most likely impact of this flaw is to application availability, with some potential impact to confidentiality and integrity if an attacker is able to use memory information to further exploit the application.

Affected and fixed versions

Package / productAffectedFixedSource
RubyGems nokogiri< 1.11.41.11.4osv
libxml2libxml2 2.9.11—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2021-3517. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-3517.md
Affected: nokogiri < 1.11.4
Fixed in: 1.11.4

Steps:
1. Search this machine and project for nokogiri (RubyGems), libxml2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2021-3517 being exploited?

There is no confirmed exploitation: CVE-2021-3517 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 12.83% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2021-3517?

High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2021-3517?

nokogiri < 1.11.4.

Is there a fix for CVE-2021-3517?

Yes. Fixed in 1.11.4. Upgrade nokogiri to 1.11.4 or later.

How do I check if I'm affected by CVE-2021-3517?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors