{
  "id": "CVE-2026-57235",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-57235",
  "published_at": "2026-06-25T14:31:10.673Z",
  "title": "Nokogiri: Possible Out-of-Bounds Read in `Nokogiri::XML::NodeSet#[]`",
  "vendor": "sparklemotion",
  "product": "nokogiri",
  "cvss": {
    "score": 8.2,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/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::XML::NodeSet#[] (and its alias #slice) checked the requested index against the node set's bounds using a 32-bit-truncated copy of the index. A large negative index could pass the check and then be used at full width, reading outside the node set's storage. On CRuby this is an out-of-bounds read that typically crashes the process; on JRuby it is not memory-unsafe but returns an incorrect node. This vulnerability is fixed in 1.19.4.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:a:nokogiri:nokogiri:*:*:*:*:*:ruby:*:*"
  ],
  "cvss_by_source": {
    "cna": 6.3,
    "nvd": 8.2
  },
  "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-5prr-v3j2-97mh"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
