{
  "id": "CVE-2026-57435",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57435",
  "published_at": "2026-06-25T14:32:49.306Z",
  "title": "Nokogiri: Possible Use-After-Free when setting an attribute value via `Nokogiri::XML::Attr#value=` or `#content=`",
  "vendor": "sparklemotion",
  "product": "nokogiri",
  "cvss": {
    "score": 7.5,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*"
  ],
  "cvss_by_source": {
    "cna": 1.7,
    "nvd": 7.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "sparklemotion",
        "product": "nokogiri",
        "ranges": [
          "\u003c 1.19.4"
        ],
        "fixed_in": [
          "1.19.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade nokogiri to 1.19.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-phwj-rprq-35pp"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
