Heap-based Buffer Overflow Affecting nokogiri package, versions >=1.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (2nd 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-10494060
  • published23 Jun 2025
  • disclosed22 Jun 2025
  • creditYifan Zhang

Introduced: 22 Jun 2025

NewCVE-2025-6490  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

There is no fixed version for nokogiri.

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_set_with_hash function in the gumbo-parser/src/hashmap.c file. An attacker can cause a crash or disrupt service by providing crafted input.

References

CVSS Base Scores

version 4.0
version 3.1