CVE-2016-4658 · apple
CVE-2016-4658
xpointer.c in libxml2 before 2.9.5 (as used in Apple iOS before 10, OS X before 10.12, tvOS before 10, and watchOS before 3, and other products) does not forbid namespace nodes in XPointer ranges, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and memory corruption) via a crafted XML document.
Published 2016-09-25, last changed 2026-10-14. Weakness: CWE-119.
How to fix
Upgrade to a fixed version: nokogiri 1.7.1 (RubyGems). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in gnome/libxml2 by 2960178fe8. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2016-09-25 | Published |
| 2018-08-21 | Package advisory GHSA-fr52-4hqw-p27f |
| 2026-10-14 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 8.56% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-fr52-4hqw-p27f | nokogiri (RubyGems) | 1.7.1 |
Also known as: GHSA-fr52-4hqw-p27f
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-126064 | 2026-11-10 | 2 | Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Node#[]=` or `#lang=` |
| CVE-2026-126063 | 2026-11-10 | 2.3 | Nokogiri: Mutation XSS through `noscript` content in Nokogiri's HTML5 serializer |
| CVE-2026-126062 | 2026-11-10 | 3.7 | Nokogiri : Possible SSRF on JRuby when resolving external DTDs or entities with `NONET` set |
| CVE-2026-79772 | 2026-08-25 | 6.9 | Nokogiri before 1.19.1 Unchecked Return Value canonicalize |
| CVE-2026-79771 | 2026-08-25 | 6.9 | Nokogiri before 1.19.3 Memory Leak via XSLT Transform |
| CVE-2026-79770 | 2026-08-25 | 8.7 | Nokogiri before 1.19.3 ReDoS via CSS selector tokenizer |
| CVE-2026-57438 | 2026-06-25 | 6.6 | Nokogiri: Possible Use-After-Free in XInclude Processing |
| CVE-2026-57437 | 2026-06-25 | 5.3 | Nokogiri: Possible Use-After-Free when directly using `NokogirI::XML::XPathContext` beyond document lifetime |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-4658, or call /api/v1/vulnerabilities/CVE-2016-4658. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.