VDB
Sign up
HIGH

GHSA-xjqg-9jvg-fgx2

Nokogiri subject to DoS via libxml2 vulnerability

Quick fix

GHSA-xjqg-9jvg-fgx2 — nokogiri: upgrade to the fixed version with the command below.

bundle update nokogiri

Details

The xmlStringLenDecodeEntities function in parser.c in libxml2 before 2.9.3 (as used in nokogiri before 1.6.7.1) does not properly prevent entity expansion, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted XML data, a different vulnerability than CVE-2014-3660.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/nokogiri
Introduced in: 1.6.0Fixed in: 1.6.7.1
Fixbundle update nokogiri

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:gem/nokogiri"]}'