CVE-2026-57435
published low CVSS 4.0 · 1.7Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| sparklemotion | — | nokogiri< 1.19.4 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | ruby-nokogiri | Fixed | 1.19.4-r0 | Package fix record |
| Alpine Linux | v3.24 | ruby-nokogiri | Fixed | 1.19.4-r0 | Package fix record |
Description
Nokogiri is an open source XML and HTML library for the Ruby programming language. Prior to 1.19.4, Nokogiri’s CRuby native extension could leave a Ruby wrapper pointing to freed memory when replacing the value of an XML attribute. If Ruby code had already accessed an attribute child node, Nokogiri::XML::Attr#value= could free the underlying native child node while the wrapper remained reachable through the document node cache. A later use of the freed child node or a Ruby GC mark could dereference an invalid pointer, causing an invalid read and a possible segfault. This vulnerability is fixed in 1.19.4.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 1.7 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| sparklemotion | nokogiri | < 1.19.4 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-416 CWE-416: Use After Free
- CWE-825 CWE-825: Expired Pointer Dereference
References
1Provider assertions
2GitHub_M · cna
Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b3468004e9222501e95eeb2defc649045ebad997b5e6985900d46696d12153ed
- Ingested
- 23 Sep 2026, 09:21:43 UTC
- Source record
- Official CVE record