Heap-based Buffer Overflow The advisory has been revoked - it doesn't affect any version of package nokogiri  (opens in a new tab)


Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.19% (9th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUBY-NOKOGIRI-10494063
  • published23 Jun 2025
  • disclosed22 Jun 2025
  • creditYifan Zhang

Introduced: 22 Jun 2025

CVE-2025-6494  (opens in a new tab)
CWE-122  (opens in a new tab)

Amendment

This was deemed not a vulnerability.

Overview

nokogiri is a gem for parsing HTML, XML, SAX, and Reader.

Affected versions of this package are vulnerable to Heap-based Buffer Overflow via the hashmap_get_with_hash function in the gumbo-parser/src/hashmap.c file. An attacker can cause a crash or disrupt service by providing crafted input.

Note:

According to the maintainer of the package the code from vendored gumbo-parser is not included in the released version of Nokogiri.

References