# CVE-2026-57438: Nokogiri: Possible Use-After-Free in XInclude Processing

- Severity: Low 2.2 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.09%, higher than 0% of CVEs (2026-11-29)
- Published: 2026-06-19T16:37:25.000Z
- Modified: 2026-10-25T22:10:00.150Z
- Also known as: GHSA-wfpw-mmfh-qq69
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, XInclude substitution performed by Nokogiri::XML::Node#do_xinclude replaced each <xi:include> in place, freeing the include node along with its children (such as <xi:fallback> and its descendants) and any namespaces declared on them. If an application had already exposed one of those nodes or namespaces to Ruby, the corresponding Ruby object was left pointing at freed memory. Using the object could result in invalid reads or writes to memory. This vulnerability is fixed in 1.19.4.

(As written by CVE List.)

## Affected

- sparklemotion nokogiri: < 1.19.4
- nokogiri (RubyGems): before 1.19.4
- nokogiri nokogiri: before 1.19.4

## Every score

- GitHub_M: CVSS:4.0 2.2 Low `CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:U`
- GitHub: rating Low
- NVD: CVSS:3.1 6.6 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H`

## References

- <https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-wfpw-mmfh-qq69> (vendor-advisory, web)
- <https://github.com/sparklemotion/nokogiri> (package)

## Sources

- CVE List: [CVE-2026-57438](https://www.cve.org/CVERecord?id=CVE-2026-57438), CVE Terms of Use, modified 2026-06-25
- GitHub Advisory Database: [GHSA-wfpw-mmfh-qq69](https://github.com/advisories/GHSA-wfpw-mmfh-qq69), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-57438](https://nvd.nist.gov/vuln/detail/CVE-2026-57438), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-57438 · Whole record: https://cve.day/CVE-2026-57438.json · Rebuilt by cve.day 2026-11-25T22:59:26.379Z
