CVE-2025-71406: Nokogiri before 1.18.4 Use-After-Free via libxslt
Nokogiri before 1.18.4 bundles a vulnerable version of libxslt (prior to 1.1.43) that contains two use-after-free vulnerabilities: CVE-2025-24855 (use-after-free of the XPath context node due to xsltEvalXPathStringNs leaking xpathCtxt->node) and CVE-2024-55549 (use-after-free related to excluded result prefixes/namespaces). Processing crafted XSLT can trigger memory corruption. Nokogiri 1.18.4 upgrades the bundled libxslt to 1.1.43 to resolve these issues.
Security readout for executives and security teams
Plain-English summary
Nokogiri versions before 1.18.4 bundle a vulnerable libxslt library. An attacker who can make an application process crafted XSLT could trigger memory corruption and potentially expose sensitive information. The supplied evidence does not establish code execution or active exploitation.
Executive priority
Prioritize applications that expose XSLT transformation to untrusted or internet-originated content. Upgrade promptly because exploitation requires no privileges or user interaction when the vulnerable processing path is reachable. Systems without attacker-controlled XSLT should still be inventoried and updated through normal high-severity remediation timelines.
Technical view
Two libxslt use-after-free flaws, CVE-2025-24855 and CVE-2024-55549, can be reached while processing crafted XSLT. Nokogiri 1.18.4 upgrades bundled libxslt to 1.1.43. CVE-2025-71406 is rated 8.7 under CVSS 4.0, with network reachability, low complexity, no privileges, and no user interaction.
Likely exposure
Exposure is most likely where a Ruby application uses Nokogiri before 1.18.4, relies on its bundled libxslt, and processes attacker-controlled or untrusted XSLT. Installed version alone does not prove exploitability; confirm whether affected transformation paths are reachable.
Exploitation context
The supplied record is not listed as KEV and provides no evidence of active exploitation. Crafted XSLT is required. Public network exposure matters only when untrusted input can reach an XSLT-processing workflow. No exploit steps or demonstrated impact beyond the cited memory-corruption and confidentiality risk are established here.
Researcher notes
CVE-2025-71406 represents Nokogiri’s exposure through its bundled libxslt and references two underlying flaws. The cited CVSS vector claims high confidentiality impact but no integrity or availability impact. Evidence supplied does not demonstrate remote code execution, exploitation in the wild, or exposure when XSLT input is fully trusted.
Mitigation direction
Upgrade Nokogiri to version 1.18.4 or later.
Confirm the deployed build uses libxslt 1.1.43 or later.
Restrict or disable processing of untrusted XSLT until upgrades are complete.
Review the vendor advisory for platform-specific packaging guidance.
Validation and detection
Inventory deployed Nokogiri versions, including transitive dependencies and packaged runtime artifacts.
Determine whether applications accept or derive XSLT from untrusted sources.
Verify the resolved production dependency is Nokogiri 1.18.4 or later.
Confirm bundled or linked libxslt is version 1.1.43 or later.
Regression-test legitimate XSLT workflows after remediation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.